Skip to content

Commit

Permalink
Use trusted publishing to publish packages (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm authored Sep 2, 2023
1 parent b02fbd7 commit 964ac32
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
environment: release
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
Expand All @@ -35,6 +36,7 @@ jobs:

sdist-purewheel:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -57,6 +59,9 @@ jobs:
- binary-wheels
- sdist-purewheel
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Download generated packaging artifacts
uses: actions/download-artifact@v3
Expand All @@ -66,5 +71,3 @@ jobs:
mv */*.whl */*.tar.gz dist
- name: Upload packages
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 964ac32

Please sign in to comment.