mirror of
https://github.com/openziti/zrok.git
synced 2024-11-29 11:34:07 +01:00
update python action
This commit is contained in:
parent
4d14617ed7
commit
c8b240037c
14
.github/workflows/build-wheels.yml
vendored
14
.github/workflows/build-wheels.yml
vendored
@ -6,6 +6,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_wheels:
|
build_wheels:
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: sdk/python/sdk/zrok
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -38,12 +41,14 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: startsWith(matrix.spec.name, 'linux')
|
if: startsWith(matrix.spec.name, 'linux')
|
||||||
with:
|
with:
|
||||||
name: openziiti-sdist
|
name: zrok_sdk
|
||||||
path: ./dist/*
|
path: ${{ github.workspace }}/sdk/python/sdk/zrok/dist/*
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [ build_wheels ]
|
needs: [ build_wheels ]
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
@ -58,17 +63,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish wheels (TestPYPI)
|
- name: Publish wheels (TestPYPI)
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
with:
|
with:
|
||||||
|
repository-url: https://test.pypi.org/legacy/
|
||||||
packages_dir: dist
|
packages_dir: dist
|
||||||
skip_existing: true
|
skip_existing: true
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
||||||
- name: Publish wheels (PyPI)
|
- name: Publish wheels (PyPI)
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
with:
|
with:
|
||||||
packages_dir: dist
|
packages_dir: dist
|
||||||
verbose: true
|
verbose: true
|
Loading…
Reference in New Issue
Block a user