Skip to content

Commit

Permalink
use trusted publisher for test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
niyiyu committed Feb 27, 2024
1 parent 305e716 commit f0200c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f0200c3

Please sign in to comment.