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: 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