Skip to content

Commit

Permalink
Use trusted publisher setup for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Oct 21, 2023
1 parent fb8128f commit de23fde
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ jobs:
build-n-publish:
name: Build release packages
runs-on: ubuntu-latest
environment: publish
permissions: # for trusted publishing
id-token: write

steps:
- uses: actions/checkout@master

- name: Setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.x"

- name: Install pypa/build
run: >-
Expand All @@ -33,5 +37,3 @@ jobs:
- name: Publish release on pypi
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit de23fde

Please sign in to comment.