ci: use trusted publisher config for release
See: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
This commit is contained in:
parent
3fc4486883
commit
22adbdf1a1
1 changed files with 6 additions and 4 deletions
10
.github/workflows/release.yaml
vendored
10
.github/workflows/release.yaml
vendored
|
|
@ -108,8 +108,11 @@ jobs:
|
||||||
test-release:
|
test-release:
|
||||||
name: Release (test.pypi.org)
|
name: Release (test.pypi.org)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: "Test PyPI"
|
environment:
|
||||||
# if: "startsWith(github.ref, 'refs/tags/')"
|
name: testpypi
|
||||||
|
url: https://test.pypi.org/p/argus-temporal-logic
|
||||||
|
permissions:
|
||||||
|
id-token: write # IMPORTANT: mandatory for trusted publishing
|
||||||
needs: [linux, windows, macos, sdist]
|
needs: [linux, windows, macos, sdist]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
|
|
@ -119,8 +122,7 @@ jobs:
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
env:
|
env:
|
||||||
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
|
||||||
MATURIN_REPOSITORY_URL: "https://test.pypi.org"
|
MATURIN_REPOSITORY_URL: "https://test.pypi.org"
|
||||||
with:
|
with:
|
||||||
command: upload
|
command: upload
|
||||||
args: --non-interactive --skip-existing dist/*
|
args: --non-interactive dist/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue