Skip to content

Commit 1ea74f4

Browse files
committed
Revert publish_pypi.yml as Pypi doesn't support reuseable workflows as trusted publishers
1 parent 162df97 commit 1ea74f4

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ on:
1010

1111
jobs:
1212
upload_pypi:
13-
uses: explosion/gha-cibuildwheel/.github/workflows/publish_pypi.yml@main
14-
with:
15-
pypi-package-name: 'confection'
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/p/confection
17+
permissions:
18+
id-token: write
19+
contents: read
20+
if: github.event_name == 'release' && github.event.action == 'published'
21+
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
22+
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
23+
steps:
24+
- uses: robinraju/release-downloader@v1
25+
with:
26+
tag: ${{ github.event.release.tag_name }}
27+
fileName: '*'
28+
out-file-path: 'dist'
29+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)