Skip to content

Commit 3e5df7b

Browse files
committed
version from release tag
1 parent 9983c6b commit 3e5df7b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pypi_release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,17 @@ jobs:
2828
python -m pip install --upgrade pip
2929
pip install -r requirements.txt -r requirements_dev.txt
3030
31+
- name: Calculate version from ${{github.ref}}
32+
env:
33+
PKG_TAG: ${{github.ref}}
34+
shell: bash
35+
run: echo "##[set-output name=tag;]$(echo ${PKG_TAG#refs/tags/})"
36+
id: extract_tag
37+
3138
- name: build package
3239
run: python setup.py sdist bdist_wheel
3340
env:
34-
RELEASE_VERSION: ${{github.ref}}
41+
RELEASE_VERSION: ${{steps.extract_tag.outputs.tag}}
3542

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

0 commit comments

Comments
 (0)