Skip to content

Commit 6964025

Browse files
committed
use "pypa/gh-action-pypi-publish"
1 parent e7c5dc7 commit 6964025

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,10 @@ jobs:
661661
needs: [test-builds-arch, test-builds-os, build-sdist, check]
662662
if: success() && startsWith(github.ref, 'refs/tags/')
663663
runs-on: ubuntu-latest
664+
environment: release
665+
666+
permissions:
667+
id-token: write
664668

665669
steps:
666670
- uses: actions/checkout@v4
@@ -684,11 +688,10 @@ jobs:
684688

685689
- run: twine check --strict dist/*
686690

687-
- name: upload to pypi
688-
run: twine upload dist/*
689-
env:
690-
TWINE_USERNAME: __token__
691-
TWINE_PASSWORD: ${{ secrets.pypi_token }}
691+
- name: Publish to PyPI
692+
uses: pypa/gh-action-pypi-publish@v1
693+
with:
694+
skip-existing: true
692695

693696
- name: get wasm dist artifacts
694697
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)