We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5077748 commit 6a11151Copy full SHA for 6a11151
1 file changed
.github/workflows/pypi-publish.yml
@@ -4,7 +4,10 @@
4
name: Publish to PyPI
5
6
on:
7
- # Deploy to Pypi when a release is published
+ # Deploy to PyPI when a tag is pushed or a release is published
8
+ push:
9
+ tags:
10
+ - 'v*'
11
release:
12
types: [published]
13
@@ -18,14 +21,12 @@ jobs:
18
21
- name: Export tag
19
22
id: vars
20
23
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
- if: ${{ github.event_name == 'release' }}
24
25
- name: Update project version
26
run: |
27
sed -i "s/^version = \".*\"/version = \"$RELEASE_VERSION\"/" pyproject.toml
28
env:
29
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
30
31
- name: Upload updated pyproject.toml
32
uses: actions/upload-artifact@v4
0 commit comments