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:
|
||||
name: Release (test.pypi.org)
|
||||
runs-on: ubuntu-latest
|
||||
environment: "Test PyPI"
|
||||
# if: "startsWith(github.ref, 'refs/tags/')"
|
||||
environment:
|
||||
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]
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
|
|
@ -119,8 +122,7 @@ jobs:
|
|||
- name: Publish to PyPI
|
||||
uses: PyO3/maturin-action@v1
|
||||
env:
|
||||
MATURIN_PYPI_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||
MATURIN_REPOSITORY_URL: "https://test.pypi.org"
|
||||
with:
|
||||
command: upload
|
||||
args: --non-interactive --skip-existing dist/*
|
||||
args: --non-interactive dist/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue