Skip to content

Commit

Permalink
Merge pull request #23 from arviz-devs/trusted
Browse files Browse the repository at this point in the history
Update workflow
  • Loading branch information
aloctavodia authored Feb 12, 2025
2 parents 1986d50 + 73d376d commit be89fe8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI and TestPyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/simuk
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
Expand All @@ -30,14 +35,5 @@ jobs:
--wheel
--outdir dist/
- name: Publish distribution to Test PyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit be89fe8

Please sign in to comment.