Skip to content

Commit a8c6953

Browse files
authored
fix: release using trusted publishing (#84)
* ci: update gh-action-pypi-publish * fix: setup trusted pypi publishing
1 parent e736ac4 commit a8c6953

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release-please.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
if: ${{ needs.release-please.outputs.release_created }}
3030
container:
3131
image: "python:3.11"
32+
environment:
33+
name: pypi
34+
url: https://pypi.org/p/spotify-confidence-sdk
35+
permissions:
36+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
3237
steps:
3338
- name: Check out src from Git
3439
uses: actions/checkout@v4
@@ -77,6 +82,4 @@ jobs:
7782
.
7883
7984
- name: pypi-publish
80-
uses: pypa/gh-action-pypi-publish@v1.10.3
81-
with:
82-
password: ${{ secrets.PYPI_API_TOKEN }}
85+
uses: pypa/gh-action-pypi-publish@v1.12.4

0 commit comments

Comments
 (0)