Skip to content

Commit 006aecb

Browse files
committed
Move to using Trusted Publishers for deploying to PyPI.
See https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/
1 parent 5cf094a commit 006aecb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ jobs:
7171
packaging:
7272
needs: ci
7373
runs-on: ubuntu-latest
74+
environment:
75+
name: PyPI
76+
url: https://pypi.org/p/sphinx-json-schema-spec
77+
permissions:
78+
id-token: write
7479

7580
steps:
7681
- uses: actions/checkout@v3
@@ -85,8 +90,6 @@ jobs:
8590
- name: Publish to PyPI
8691
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
8792
uses: pypa/gh-action-pypi-publish@release/v1
88-
with:
89-
password: ${{ secrets.pypi_password }}
9093
- name: Create a Release
9194
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
9295
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)