We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f12318 commit 81c2180Copy full SHA for 81c2180
.github/workflows/main.yml
@@ -22,7 +22,14 @@ jobs:
22
- uses: actions/setup-python@v5
23
with:
24
python-version: "3.12"
25
-
+ - name: Install dependencies
26
+ id: set-version
27
+ run: |
28
+ VERSION=$(grep version pyproject.toml | cut -d= -f2 | tr -d '[:blank:]' | tr -d '"')
29
+ [ $GITHUB_EVENT_NAME == 'push' ] && VERSION+=b && VERSION+=$(($(git tag -l "*$VERSION*" | cut -db -f2 | sort -n | tail -1)+1))
30
+ [ $GITHUB_EVENT_NAME == 'release' ] && VERSION=${{ github.event.release.tag_name }} && VERSION=${VERSION/v/}
31
+ echo VERSION = $VERSION
32
+ sed -ie "s/version = .*/version = $VERSION/" pyproject.toml
33
- name: Build release distributions
34
run: |
35
# NOTE: put your own distribution build steps here.
0 commit comments