Skip to content

Commit be89fe8

Browse files
authored
Merge pull request #23 from arviz-devs/trusted
Update workflow
2 parents 1986d50 + 73d376d commit be89fe8

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/publish-to-test-pypi.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
build-n-publish:
1010
name: Build and publish Python distributions to PyPI and TestPyPI
1111
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/simuk
15+
permissions:
16+
id-token: write
1217
steps:
1318
- uses: actions/checkout@v4
1419
- name: Set up Python 3.11
@@ -30,14 +35,5 @@ jobs:
3035
--wheel
3136
--outdir dist/
3237
33-
- name: Publish distribution to Test PyPI
38+
- name: Publish package distributions to PyPI
3439
uses: pypa/gh-action-pypi-publish@release/v1
35-
with:
36-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
37-
repository_url: https://test.pypi.org/legacy/
38-
39-
- name: Publish distribution to PyPI
40-
if: startsWith(github.ref, 'refs/tags')
41-
uses: pypa/gh-action-pypi-publish@release/v1
42-
with:
43-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)