We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 609ca82 commit d34caebCopy full SHA for d34caeb
1 file changed
.github/workflows/publish-to-pypi.yml
@@ -1,6 +1,10 @@
1
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
3
-on: push
+on:
4
+ push:
5
+ # Pattern matched against refs/tags
6
+ tags:
7
+ - '*' # Push events to every tag not containing /
8
9
jobs:
10
build:
@@ -35,13 +39,12 @@ jobs:
35
39
publish-to-pypi:
36
40
name: >-
37
41
Publish Python 🐍 distribution 📦 to PyPI
38
- if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
42
needs:
43
- build
44
runs-on: ubuntu-latest
45
environment:
46
name: pypi
- url: https://pypi.org/p/<package-name> # Replace <package-name> with your PyPI project name
47
+ url: https://pypi.org/p/causarray # Replace <package-name> with your PyPI project name
48
permissions:
49
id-token: write # IMPORTANT: mandatory for trusted publishing
50
0 commit comments