Skip to content

Commit

Permalink
Update pypi publish method
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Dec 19, 2023
1 parent 02bca4a commit 6a0d2e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/entrypoint_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions to TestPyPI 📦
runs-on: ubuntu-latest
environment: nightly
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
needs: test
steps:
- uses: actions/checkout@master
Expand All @@ -33,6 +37,5 @@ jobs:
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
7 changes: 4 additions & 3 deletions .github/workflows/entrypoint_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions to PyPI 📦
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
needs: test
steps:
- uses: actions/checkout@master
Expand All @@ -31,10 +35,7 @@ jobs:
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Publish distribution 📦 to PyPI (prod)
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 6a0d2e6

Please sign in to comment.