Skip to content

Commit

Permalink
Use pypi-publish action to publish with PyPI Trusted Publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas committed Jun 2, 2023
1 parent 95a3799 commit c3d8d6b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ jobs:
environment: release
needs: [build]

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- uses: actions/download-artifact@v3
with:
name: artifacts
path: dist

- name: Install Hatch
run: pip install hatch

- name: Publish to PyPI
run: hatch publish
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c3d8d6b

Please sign in to comment.