Skip to content

Commit

Permalink
version from release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sinina committed Aug 27, 2023
1 parent 9983c6b commit 3e5df7b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements_dev.txt
- name: Calculate version from ${{github.ref}}
env:
PKG_TAG: ${{github.ref}}
shell: bash
run: echo "##[set-output name=tag;]$(echo ${PKG_TAG#refs/tags/})"
id: extract_tag

- name: build package
run: python setup.py sdist bdist_wheel
env:
RELEASE_VERSION: ${{github.ref}}
RELEASE_VERSION: ${{steps.extract_tag.outputs.tag}}

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 3e5df7b

Please sign in to comment.