There was an error while loading. Please reload this page.
2 parents 4196b56 + a96a571 commit 3b7d8c6Copy full SHA for 3b7d8c6
1 file changed
.github/workflows/test.yml
@@ -26,6 +26,10 @@ jobs:
26
deploy:
27
needs: test
28
name: PyPI Deploy
29
+ environment: pypi
30
+ permissions:
31
+ contents: write
32
+ id-token: write
33
runs-on: ubuntu-latest
34
steps:
35
- uses: actions/checkout@v3
@@ -39,8 +43,9 @@ jobs:
39
43
uses: casperdcl/deploy-pypi@v2
40
44
with:
41
45
build: true
42
- password: ${{ secrets.PYPI_TOKEN }}
- upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
46
+ upload: false
47
+ - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
48
+ uses: pypa/gh-action-pypi-publish@release/v1
49
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
50
name: Release
51
run: |
0 commit comments