We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7de1329 commit 0b5a425Copy full SHA for 0b5a425
1 file changed
.github/workflows/pypi_publish.yml
@@ -64,6 +64,11 @@ jobs:
64
upload_pypi:
65
needs: [build-n-publish]
66
runs-on: ubuntu-latest
67
+ environment:
68
+ name: pypi
69
+ url: https://pypi.org/p/dwriteshapepy # Replace <package-name> with your PyPI project name
70
+ permissions:
71
+ id-token: write # IMPORTANT: mandatory for trusted publishing
72
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
73
steps:
74
- uses: actions/download-artifact@v4
@@ -76,9 +81,7 @@ jobs:
76
81
name: source-dist-artifact
77
82
path: dist
78
83
79
- - uses: pypa/gh-action-pypi-publish@release/v1
80
- with:
- user: __token__
- password: ${{ secrets.pypi_password }}
84
+ - name: Publish distribution 📦 to PyPI
85
+ uses: pypa/gh-action-pypi-publish@release/v1
86
87
0 commit comments