Skip to content

Commit

Permalink
Export desired version in pypi release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
haasad committed Nov 16, 2023
1 parent 475ce4e commit cc19ac9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
tags:
- 'v*'
- '*'

jobs:
build-and-publish:
Expand All @@ -22,6 +22,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build
- name: Export version from git tag
run: |
echo "VERSION=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV"
- name: Build
run: python -m build
- name: Upload to PyPI
Expand Down

0 comments on commit cc19ac9

Please sign in to comment.