From f5c0b70389c2e9227cd73c54dfd78f03d9959116 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Thu, 16 May 2024 11:44:06 -0400 Subject: [PATCH] Configure PyPI release stuff --- .github/workflows/flatgfa-py.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/flatgfa-py.yml b/.github/workflows/flatgfa-py.yml index dc5f0b61..1c30ba1e 100644 --- a/.github/workflows/flatgfa-py.yml +++ b/.github/workflows/flatgfa-py.yml @@ -135,14 +135,15 @@ jobs: release: name: Release runs-on: ubuntu-latest + environment: release if: "startsWith(github.ref, 'refs/tags/')" needs: [linux, windows, macos, sdist] + permissions: + id-token: write steps: - uses: actions/download-artifact@v4 - name: Publish to PyPI uses: PyO3/maturin-action@v1 - env: - MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} with: command: upload args: --non-interactive --skip-existing wheels-*/*