Skip to content

Commit 6763b33

Browse files
authored
chore: use trusted publisher deployment (#366)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent ddbb57d commit 6763b33

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,15 @@ jobs:
218218
needs: [check_dist]
219219
runs-on: ubuntu-latest
220220
if: github.event_name == 'push' && github.repository == 'scikit-build/cmake-python-distributions' && startsWith(github.ref, 'refs/tags/')
221+
environment:
222+
name: pypi
223+
url: https://pypi.org/p/cmake
224+
permissions:
225+
id-token: write
221226
steps:
222227
- uses: actions/download-artifact@v3
223228
with:
224229
name: artifact
225230
path: dist
226231

227-
- name: Upload to PyPI
228-
uses: pypa/gh-action-pypi-publish@release/v1
229-
with:
230-
password: ${{ secrets.PYPI_RELEASE_PASSWORD }}
232+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)