Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 3c4d372

Browse files
authored
Merge pull request #93 from TaykYoku/2.0_init2
[2.0] change github deployment workflow
2 parents 35d0098 + a55b44f commit 3c4d372

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/deployment.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,25 @@ jobs:
2020
run: pip install build readme_renderer diraccfg
2121
- name: Validate README for PyPI
2222
run: python -m readme_renderer README.rst -o /tmp/README.html
23-
- name: Publish ${GITHUB_REF##*/} release to GitHub
23+
- name: Make PEP-440 style release on GitHub
24+
id: PEP-440
25+
run: |
26+
NEW_STYLE=${GITHUB_REF##*/}
27+
echo "Use ${NEW_STYLE}" version
28+
echo ::set-output name=tag_name::"v$NEW_STYLE"
29+
echo ::set-output name=target_commitish::"$(git rev-parse HEAD)"
30+
- name: Publish ${{ steps.PEP-440.outputs.tag_name }} release to GitHub
2431
if: github.event_name == 'push'
2532
uses: softprops/action-gh-release@v1
2633
with:
27-
target_commitish: $(git rev-parse HEAD)
34+
target_commitish: ${{ steps.PEP-440.outputs.target_commitish }}
2835
body_path: release.notes
29-
tag_name: ${GITHUB_REF##*/}
30-
- name: Get ${GITHUB_REF##*/} tag
36+
tag_name: ${{ steps.PEP-440.outputs.tag_name }}
37+
- name: Get ${{ steps.PEP-440.outputs.tag_name }} tag
3138
if: github.event_name == 'push'
3239
uses: actions/checkout@v2
3340
with:
34-
ref: ${GITHUB_REF##*/}
41+
ref: ${{ steps.PEP-440.outputs.tag_name }}
3542
- name: Build distributions
3643
run: python -m build
3744
- name: Publish package on PyPI

0 commit comments

Comments
 (0)