Skip to content

Commit 4213ad2

Browse files
authored
ci: switch to pypi trusted publishing (#488)
1 parent ba78f2f commit 4213ad2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
environment:
15+
name: release
16+
url: https://pypi.org/p/stac-api-validator
1217
steps:
1318
- name: Check out the repository
1419
uses: actions/checkout@v4
@@ -57,17 +62,12 @@ jobs:
5762
- name: Publish package on PyPI
5863
if: steps.check-version.outputs.tag
5964
uses: pypa/[email protected]
60-
with:
61-
user: ${{ secrets.PYPI_STACUTILS_USERNAME }}
62-
password: ${{ secrets.PYPI_STACUTILS_PASSWORD}}
6365

6466
- name: Publish package on TestPyPI
6567
if: "! steps.check-version.outputs.tag"
6668
uses: pypa/[email protected]
6769
with:
68-
user: __token__
69-
password: ${{ secrets.TEST_PYPI_TOKEN }}
70-
repository_url: https://test.pypi.org/legacy/
70+
repository-url: https://test.pypi.org/legacy/
7171

7272
- name: Publish the release notes
7373
uses: release-drafter/[email protected]

0 commit comments

Comments
 (0)