From f0200c3dddbbbbe58671dd27115ccf37d4511e01 Mon Sep 17 00:00:00 2001 From: Yiyu Ni Date: Tue, 27 Feb 2024 09:37:59 -0800 Subject: [PATCH] use trusted publisher for test pypi --- .github/workflows/release.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9a426824..f8cd4686 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -40,6 +40,8 @@ jobs: name: Test noisepy-seis package needs: build-artifact runs-on: ubuntu-20.04 + permissions: + id-token: write steps: - uses: actions/setup-python@v4.5.0 name: Install Python @@ -54,12 +56,11 @@ jobs: ls -ltrh ls -ltrh dist - name: Publish to Test PyPI - uses: pypa/gh-action-pypi-publish@v1.8.5 + uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + repository-url: https://test.pypi.org/legacy/ verbose: true - skip_existing: true + skip-existing: true - name: Setup MPI pre-requisite uses: mpi4py/setup-mpi@v1 - name: Check pypi packages