Skip to content

Commit

Permalink
Bring back the publish to test step
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Aug 1, 2024
1 parent 0a979ff commit 678f4e3
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,32 +59,32 @@ jobs:
base64-subjects: "${{ needs.build.outputs.hashes }}"
upload-assets: true

# publish-to-test-pypi:
# name: "Publish to Test PyPI"
# needs: [ "build", "provenance" ]
# permissions:
# id-token: write # Needed for trusted publishing to PyPI.
# runs-on: "ubuntu-latest"
# environment:
# name: "testpypi"
# url: "https://test.pypi.org/p/ngohub/${{ github.ref_name }}/"
#
# steps:
# - name: "Download dists"
# uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
# with:
# name: "dist"
# path: "dist/"
#
# - name: "Publish dists to Test PyPI"
# uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0
# with:
# repository-url: https://test.pypi.org/legacy/
publish-to-test-pypi:
name: "Publish to Test PyPI"
needs: [ "build", "provenance" ]
permissions:
id-token: write # Needed for trusted publishing to PyPI.
runs-on: "ubuntu-latest"
environment:
name: "testpypi"
url: "https://test.pypi.org/p/ngohub/${{ github.ref_name }}/"

steps:
- name: "Download dists"
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: "dist"
path: "dist/"

- name: "Publish dists to Test PyPI"
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0
with:
repository-url: https://test.pypi.org/legacy/

publish-to-pypi:
name: "Publish to PyPI"
if: startsWith(github.ref, 'refs/tags/')
needs: [ "build", "provenance" ]
needs: [ "publish-to-test-pypi" ]
permissions:
contents: write # Needed for making GitHub releases
id-token: write # Needed for trusted publishing to PyPI.
Expand Down

0 comments on commit 678f4e3

Please sign in to comment.