Skip to content

Commit

Permalink
Use trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Dec 23, 2024
1 parent 2765f4b commit 099915e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,17 @@ jobs:
name: Upload package to GitHub Releases & PyPI
permissions:
contents: write
id-token: write
needs:
- lint
- test-and-build
- sdist
- test-interfaces
- test-muscle5
runs-on: ubuntu-latest
environment:
name: publish
url: https://pypi.org/p/biotite
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -347,10 +351,8 @@ jobs:
with:
files: dist//*
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@v1.9.0
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'release' && github.event.action == 'published'
with:
password: ${{ secrets.PYPI_TOKEN }}


upload-ccd:
Expand Down

0 comments on commit 099915e

Please sign in to comment.