Skip to content

Commit

Permalink
ci: release to PyPI using Trusted Publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Oct 9, 2023
1 parent 70686f7 commit 62e5da5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,17 @@ jobs:
- uses: wagoid/commitlint-github-action@v5.4.3

release:
runs-on: ubuntu-latest
environment: release
needs:
- test
- commitlint

runs-on: ubuntu-latest
environment: release
concurrency: release
permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -100,8 +105,6 @@ jobs:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
with:
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
Expand Down

0 comments on commit 62e5da5

Please sign in to comment.