Skip to content

Commit 2b95dc0

Browse files
committed
Make PyPI release require GitHub release
1 parent 3c2c3c3 commit 2b95dc0

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/release.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,10 @@ jobs:
3232
repository-url: https://test.pypi.org/legacy/
3333
skip-existing: true
3434
print-hash: true
35-
prod-pypi:
36-
if: github.ref_type == 'tag'
37-
runs-on: ubuntu-latest
38-
needs: build
39-
environment:
40-
name: prod-pypi
41-
url: https://pypi.org/p/pywmspro
42-
permissions:
43-
id-token: write
44-
steps:
45-
- uses: actions/download-artifact@v4
46-
with:
47-
name: Packages
48-
path: dist
49-
- uses: pypa/gh-action-pypi-publish@release/v1
50-
with:
51-
print-hash: true
5235
github-release:
5336
if: github.ref_type == 'tag'
5437
runs-on: ubuntu-latest
55-
needs: build
38+
needs: test-pypi
5639
permissions:
5740
contents: write
5841
id-token: write
@@ -76,4 +59,21 @@ jobs:
7659
--draft
7760
env:
7861
GH_TOKEN: "${{ github.token }}"
62+
prod-pypi:
63+
if: github.ref_type == 'tag'
64+
runs-on: ubuntu-latest
65+
needs: github-release
66+
environment:
67+
name: prod-pypi
68+
url: https://pypi.org/p/pywmspro
69+
permissions:
70+
id-token: write
71+
steps:
72+
- uses: actions/download-artifact@v4
73+
with:
74+
name: Packages
75+
path: dist
76+
- uses: pypa/gh-action-pypi-publish@release/v1
77+
with:
78+
print-hash: true
7979
...

0 commit comments

Comments
 (0)