Skip to content

Commit

Permalink
Use trusted publisher setup for CI (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Oct 21, 2023
1 parent 4c81530 commit b25bf7c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
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 @@ -32,6 +36,4 @@ jobs:
.
- name: Publish release on pypi
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit b25bf7c

Please sign in to comment.