Skip to content

Commit d07caf4

Browse files
jcfrhenryiii
andauthored
chore: use trusted publisher deployment (#191)
* chore: use trusted publisher deployment Signed-off-by: Jean-Christophe Fillion-Robin <[email protected]> * Update .github/workflows/build.yml --------- Signed-off-by: Jean-Christophe Fillion-Robin <[email protected]> Co-authored-by: Henry Schreiner <[email protected]>
1 parent 89b1a02 commit d07caf4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ jobs:
161161
needs: [check_dist]
162162
runs-on: ubuntu-latest
163163
if: github.event_name == 'push' && github.repository == 'scikit-build/ninja-python-distributions' && startsWith(github.ref, 'refs/tags/')
164+
environment:
165+
name: pypi
166+
url: https://pypi.org/p/ninja
167+
permissions:
168+
id-token: write
164169
steps:
165170
- uses: actions/download-artifact@v3
166171
with:
@@ -169,6 +174,3 @@ jobs:
169174

170175
- name: Upload to PyPI
171176
uses: pypa/gh-action-pypi-publish@release/v1
172-
with:
173-
user: __token__
174-
password: ${{ secrets.PYPI_RELEASE_PASSWORD }}

0 commit comments

Comments
 (0)