From a4ae77f196caf3d33e8251a768e9cebc25723a5c Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 27 Apr 2021 12:33:13 -0300 Subject: [PATCH] fix pypi-publish action --- .github/workflows/pypi-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index f28c189c..2f350a53 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,7 +1,8 @@ name: Publish package to PyPI on: - release: - types: [published] + push: + tags: + - '*' jobs: publish: runs-on: ubuntu-18.04 @@ -12,11 +13,10 @@ jobs: with: python-version: 3.8 - name: Get release version - env: - TAG_VERSION: ${{ steps.vars.outputs.tag }} run: | echo "CHANGELOG_VERSION=$(cat CHANGELOG.md | grep -oP '(?<=###\s)(.*)(?=\s\-)' | head -n 1 | sed 's/Version\s/v/')" >> $GITHUB_ENV echo "CONDA_VERSION=$(cat conda.recipe/meta.yaml | grep -oP '(version\:.*)' | head -n 1 | sed 's/version\:\s/v/')" >> $GITHUB_ENV + echo "TAG_VERSION=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV - name: Check changelog release version if: ${{ env.TAG_VERSION != env.CHANGELOG_VERSION }} run: |