Use trusted publisher for publishing to pypi (#531)

This commit is contained in:
Teemu R 2023-10-29 16:30:37 +01:00 committed by GitHub
parent af37e83db1
commit 0061668c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,13 +7,15 @@ jobs:
build-n-publish:
name: Build release packages
runs-on: ubuntu-latest
permissions: # for trusted publishing
id-token: write
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.x"
- name: Install pypa/build
run: >-
@ -30,6 +32,4 @@ jobs:
--outdir dist/
.
- 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