Skip to content

Commit

Permalink
Switched to trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jul 29, 2023
1 parent 4640be7 commit fc578bc
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"

jobs:
publish:
build:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -20,8 +21,21 @@ jobs:
- name: Install dependencies
run: pip install build
- name: Create packages
run: python -m build -s -w .
run: python -m build
- name: Archive packages
uses: actions/upload-artifact@v3
with:
name: dist
path: dist

publish:
needs: build
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Retrieve packages
uses: actions/download-artifact@v3
- name: Upload packages
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_token }}

0 comments on commit fc578bc

Please sign in to comment.