Skip to content

Commit

Permalink
chore: use trusted publisher deployment (#366)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored May 25, 2023
1 parent ddbb57d commit 6763b33
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,15 @@ jobs:
needs: [check_dist]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'scikit-build/cmake-python-distributions' && startsWith(github.ref, 'refs/tags/')
environment:
name: pypi
url: https://pypi.org/p/cmake
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

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

0 comments on commit 6763b33

Please sign in to comment.