Skip to content

Commit

Permalink
testpypi
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewyates committed Jun 30, 2024
1 parent 965ecb1 commit d888f95
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,27 +92,28 @@ jobs:
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
### Uncomment to publish to testpypi on every commit
# publish-to-testpypi:
# name: Publish Python distribution to TestPyPI
# needs:
# - build
# runs-on: ubuntu-latest
publish-to-testpypi:
name: Publish Python distribution to TestPyPI
### Comment the following line to publish to testpypi on commit
# if: startsWith(github.ref, 'refs/PUBLISH-DISABLED/')
needs:
- build
runs-on: ubuntu-latest

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

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

# steps:
# - name: Download all the dists
# uses: actions/download-artifact@v3
# 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/
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
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 d888f95

Please sign in to comment.