Skip to content

Commit d34caeb

Browse files
committed
Update publish-to-pypi.yml
1 parent 609ca82 commit d34caeb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
22

3-
on: push
3+
on:
4+
push:
5+
# Pattern matched against refs/tags
6+
tags:
7+
- '*' # Push events to every tag not containing /
48

59
jobs:
610
build:
@@ -35,13 +39,12 @@ jobs:
3539
publish-to-pypi:
3640
name: >-
3741
Publish Python 🐍 distribution 📦 to PyPI
38-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3942
needs:
4043
- build
4144
runs-on: ubuntu-latest
4245
environment:
4346
name: pypi
44-
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
4548
permissions:
4649
id-token: write # IMPORTANT: mandatory for trusted publishing
4750

0 commit comments

Comments
 (0)