Skip to content

Commit

Permalink
Upgrade to trusted PyPI publishing (#54)
Browse files Browse the repository at this point in the history
* Upgrade to trusted PyPI publishing

* Update Publish.yml
  • Loading branch information
djperrefort authored Aug 28, 2024
1 parent b636977 commit 9611619
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
publish-pypi:
name: Python Distribution
runs-on: ubuntu-latest
environment: publish

steps:
- name: Set up Python
Expand All @@ -35,12 +36,12 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true
user: ${{ secrets.REPO_USER }}
password: ${{ secrets.REPO_PASSWORD }}

trigger-docs:
name: Trigger Docs
runs-on: ubuntu-latest
environment: publish

steps:
- name: Update docs
uses: pitt-crc/keystone-docs/.github/actions/update-action/@main
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ jobs:
needs: [ version, test ]
uses: ./.github/workflows/Publish.yml
secrets: inherit
permissions:
id-token: write
with:
version: ${{needs.version.outputs.version}}

0 comments on commit 9611619

Please sign in to comment.