This repository was archived by the owner on Feb 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments