update python action

This commit is contained in:
Cam 2023-12-04 15:50:09 -06:00
parent 4d14617ed7
commit c8b240037c
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD

View File

@ -6,6 +6,9 @@ on:
jobs:
build_wheels:
defaults:
run:
working-directory: sdk/python/sdk/zrok
strategy:
fail-fast: false
matrix:
@ -38,12 +41,14 @@ jobs:
- uses: actions/upload-artifact@v3
if: startsWith(matrix.spec.name, 'linux')
with:
name: openziiti-sdist
path: ./dist/*
name: zrok_sdk
path: ${{ github.workspace }}/sdk/python/sdk/zrok/dist/*
publish:
runs-on: ubuntu-20.04
needs: [ build_wheels ]
permissions:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
@ -58,17 +63,14 @@ jobs:
- name: Publish wheels (TestPYPI)
uses: pypa/gh-action-pypi-publish@release/v1
permissions:
id-token: write
with:
repository-url: https://test.pypi.org/legacy/
packages_dir: dist
skip_existing: true
verbose: true
- name: Publish wheels (PyPI)
uses: pypa/gh-action-pypi-publish@release/v1
permissions:
id-token: write
with:
packages_dir: dist
verbose: true