File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11name : Publish package to PyPI
22on :
3- release :
4- types : [published]
3+ push :
4+ tags :
5+ - ' *'
56jobs :
67 publish :
78 runs-on : ubuntu-18.04
@@ -12,11 +13,10 @@ jobs:
1213 with :
1314 python-version : 3.8
1415 - name : Get release version
15- env :
16- TAG_VERSION : ${{ steps.vars.outputs.tag }}
1716 run : |
1817 echo "CHANGELOG_VERSION=$(cat CHANGELOG.md | grep -oP '(?<=###\s)(.*)(?=\s\-)' | head -n 1 | sed 's/Version\s/v/')" >> $GITHUB_ENV
1918 echo "CONDA_VERSION=$(cat conda.recipe/meta.yaml | grep -oP '(version\:.*)' | head -n 1 | sed 's/version\:\s/v/')" >> $GITHUB_ENV
19+ echo "TAG_VERSION=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
2020 - name : Check changelog release version
2121 if : ${{ env.TAG_VERSION != env.CHANGELOG_VERSION }}
2222 run : |
You can’t perform that action at this time.
0 commit comments