Skip to content

Commit

Permalink
CI TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo-peronio committed Jul 3, 2024
1 parent 78eb9d8 commit 11a5dda
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,27 @@ jobs:

- name: Test package
run: python -m pytest

publish-to-testpypi:
name: Publish to TestPyPI
if: startsWith(github.ref, 'refs/tags/') # only publish on tag pushes
needs: test
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/gsffile

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 11a5dda

Please sign in to comment.