Skip to content

Commit

Permalink
Move to using Trusted Publishers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed May 30, 2023
1 parent ecb27ef commit 8b15c65
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ jobs:
packaging:
needs: ci
runs-on: ubuntu-latest
environment:
name: PyPI
url: https://pypi.org/p/jsonschema
permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v3
Expand All @@ -109,8 +115,6 @@ jobs:
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}
- name: Create a Release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 8b15c65

Please sign in to comment.