publish to pypi in a separate job if testpypi succeeds

This commit is contained in:
Kenneth Bingham 2025-01-29 04:51:14 -05:00
parent 6554897473
commit dfbaae37ae
No known key found for this signature in database
GPG Key ID: 31709281860130B6

View File

@ -45,7 +45,7 @@ jobs:
name: zrok_sdk_${{ matrix.spec.target }}
path: ${{ github.workspace }}/sdk/python/sdk/zrok/dist/*
publish:
publish-testpypi:
runs-on: ubuntu-20.04
needs: [ build_wheels ]
permissions:
@ -72,6 +72,19 @@ jobs:
skip-existing: true
verbose: true
publish-pypi:
runs-on: ubuntu-20.04
needs: [ publish-testpypi ]
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: ./download
merge-multiple: true
pattern: zrok_sdk_*
- name: Publish wheels (PyPI)
uses: pypa/gh-action-pypi-publish@release/v1
with: