Skip to content

Commit 73ccb84

Browse files
authored
Switch to trusted publishing (#570)
1 parent 038762c commit 73ccb84

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,15 @@ jobs:
161161
publish:
162162
needs: [build-sdist, build-wheels]
163163
runs-on: ubuntu-latest
164+
165+
environment:
166+
name: pypi
167+
url: https://pypi.org/p/gel
164168
permissions:
169+
id-token: write
170+
attestations: write
165171
contents: write
172+
deployments: write
166173

167174
steps:
168175
- uses: actions/checkout@v3
@@ -208,7 +215,4 @@ jobs:
208215
- name: Upload to PyPI
209216
uses: pypa/gh-action-pypi-publish@release/v1
210217
with:
211-
user: __token__
212-
password: ${{ secrets.PYPI_TOKEN }}
213-
# password: ${{ secrets.TEST_PYPI_TOKEN }}
214-
# repository_url: https://test.pypi.org/legacy/
218+
attestations: true

0 commit comments

Comments
 (0)