File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -662,6 +662,10 @@ jobs:
662
662
needs : [test-builds-arch, test-builds-os, build-sdist, check]
663
663
if : always() && startsWith(github.ref, 'refs/tags/')
664
664
runs-on : ubuntu-latest
665
+ environment : release
666
+
667
+ permissions :
668
+ id-token : write
665
669
666
670
steps :
667
671
- uses : actions/checkout@v4
@@ -685,11 +689,10 @@ jobs:
685
689
686
690
- run : twine check --strict dist/*
687
691
688
- - name : upload to pypi
689
- run : twine upload dist/*
690
- env :
691
- TWINE_USERNAME : __token__
692
- TWINE_PASSWORD : ${{ secrets.pypi_token }}
692
+ - name : Publish to PyPI
693
+ uses : pypa/gh-action-pypi-publish@v1
694
+ with :
695
+ skip-existing : true
693
696
694
697
- name : get wasm dist artifacts
695
698
uses : actions/download-artifact@v4
You can’t perform that action at this time.
0 commit comments