mirror of
https://github.com/openziti/zrok.git
synced 2025-03-10 04:48:54 +01:00
publish to pypi in a separate job if testpypi succeeds
This commit is contained in:
parent
6554897473
commit
dfbaae37ae
15
.github/workflows/build-wheels.yml
vendored
15
.github/workflows/build-wheels.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
|||||||
name: zrok_sdk_${{ matrix.spec.target }}
|
name: zrok_sdk_${{ matrix.spec.target }}
|
||||||
path: ${{ github.workspace }}/sdk/python/sdk/zrok/dist/*
|
path: ${{ github.workspace }}/sdk/python/sdk/zrok/dist/*
|
||||||
|
|
||||||
publish:
|
publish-testpypi:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [ build_wheels ]
|
needs: [ build_wheels ]
|
||||||
permissions:
|
permissions:
|
||||||
@ -72,6 +72,19 @@ jobs:
|
|||||||
skip-existing: true
|
skip-existing: true
|
||||||
verbose: 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)
|
- name: Publish wheels (PyPI)
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user