Skip to content

Commit a4ae77f

Browse files
committed
fix pypi-publish action
1 parent 05aa22c commit a4ae77f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Publish package to PyPI
22
on:
3-
release:
4-
types: [published]
3+
push:
4+
tags:
5+
- '*'
56
jobs:
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: |

0 commit comments

Comments
 (0)