Skip to content

Commit

Permalink
Use PyPI trusted publishing (#2270)
Browse files Browse the repository at this point in the history
Use PyPI [trusted publishing](https://docs.pypi.org/trusted-publishers/) instead of username/password.
  • Loading branch information
dweindl authored Jan 17, 2024
1 parent 2591a3a commit 7b8ad58
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:
matrix:
python-version: [3.9]

environment:
name: pypi
url: https://pypi.org/p/amici

permissions:
id-token: write

steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -40,8 +47,6 @@ jobs:
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
packages-dir: python/sdist/dist

bioSimulatorsUpdateCliAndDockerImage:
Expand Down

0 comments on commit 7b8ad58

Please sign in to comment.