diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 1c032bd..fdf429a 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -14,10 +14,9 @@ jobs: - name: get version from tag id: get_version - run: | - realversion="${GITHUB_REF/refs\/tags\//}" - realversion="${realversion//v/}" - echo "::set-output name=VERSION::$realversion" + env: + TAG: ${{ github.event.release.tag_name }} + run: echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT - name: Set up Python 3.7 uses: actions/setup-python@v4