Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
uchendui committed Sep 6, 2024
1 parent e2dd6be commit 50381a9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 72 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/build-publish-test.yml

This file was deleted.

23 changes: 21 additions & 2 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
contents: read
needs:
- build-wheels
if: github.event_name == 'release' && github.event.action == 'published' && github.event.release.prerelease == false
Expand All @@ -62,5 +62,24 @@ jobs:
path: dist
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1


publish-testpypi:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs:
- build-wheels
if: github.event.release.prerelease == true # Only run if it's a pre-release
steps:
- name: Download dists
uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 comments on commit 50381a9

Please sign in to comment.