Skip to content

Commit

Permalink
add testpypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thht committed Oct 2, 2024
1 parent 628ade5 commit 48ace25
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,24 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: pyrasa_dist
path: dist/
path: dist/

publish_to_testpypi:
runs-on: ubuntu-latest
if: ${{ contains(github.ref, 'dev') }}
needs: [build]
environment:
name: testpypi
url: https://test.pypi.org/p/pyrasa
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 48ace25

Please sign in to comment.