Skip to content

Commit

Permalink
Use trusted publisher deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Sep 4, 2023
1 parent 93c9a68 commit 73566ec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ jobs:
needs: [dist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
environment:
name: pypi
url: https://pypi.org/p/removestar
permissions:
id-token: write

steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v
with:
user: __token__
password: ${{ secrets.pypi_password }}
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 73566ec

Please sign in to comment.