From 129935dd8fe57c53ab6db54ba7e7afe53e09e93d Mon Sep 17 00:00:00 2001 From: melpon Date: Sat, 17 Jun 2023 08:18:40 +0900 Subject: [PATCH] =?UTF-8?q?pypi=20=E3=81=B8=E3=81=AE=E3=82=A2=E3=83=83?= =?UTF-8?q?=E3=83=97=E3=83=AD=E3=83=BC=E3=83=89=E3=82=92=E8=A9=A6=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f36aeb4e..eaad58cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -132,6 +132,47 @@ jobs: name: windows-2019_python-${{ matrix.python_version }} path: dist/ + publish_wheel: + strategy: + fail-fast: false + matrix: + platform: + - name: ubuntu-22.04_x86_64 + - name: ubuntu-20.04_armv8_jetson + - name: macos-12_arm64 + - name: macos-13_arm64 + - name: windows-2019 + python_version: + - "3.8" + - "3.9" + - "3.10" + - "3.11" + exclude: + - platform: {name: ubuntu-20.04_armv8_jetson} + python_version: "3.9" + - platform: { name: ubuntu-20.04_armv8_jetson} + python_version: "3.10" + - platform: {name: ubuntu-20.04_armv8_jetson} + python_version: "3.11" + runs-on: ubuntu-latest + timeout-minutes: 60 + environment: + name: testpypi + url: https://test.pypi.org/project/sora-sdk/ + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v3 + with: + name: ${{ matrix.platform.name }}_python-${{ matrix.python_version }} + path: dist + - name: Publish package to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository-url: https://test.pypi.org/legacy/ + verbose: true + # build_macos_arm64_job: # runs-on: [self-hosted, macos, arm64] # timeout-minutes: 10