From a6561c13bf7dbccb31fe593edde29b8562db7be3 Mon Sep 17 00:00:00 2001 From: melpon Date: Mon, 26 Jun 2023 16:49:01 +0900 Subject: [PATCH] =?UTF-8?q?=E7=84=A1=E4=BA=8B=E3=83=AA=E3=83=AA=E3=83=BC?= =?UTF-8?q?=E3=82=B9=E3=81=8C=E5=8B=95=E3=81=84=E3=81=9F=E3=81=AE=E3=81=A7?= =?UTF-8?q?=E6=8E=83=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 103 ++++++++++++++++++------------------ 1 file changed, 51 insertions(+), 52 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fefabf9d..dee76de2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -128,59 +128,59 @@ jobs: name: windows-2019_python-${{ matrix.python_version }} path: dist/ - #publish_wheel: - # if: contains(github.ref, 'tags/202') - # needs: - # - build_linux_macos - # - build_windows - # strategy: - # fail-fast: false - # matrix: - # platform: - # - name: ubuntu-22.04_x86_64 - # - name: ubuntu-20.04_armv8_jetson - # - 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 - # steps: - # - uses: actions/download-artifact@v3 - # with: - # name: ${{ matrix.platform.name }}_python-${{ matrix.python_version }} - # path: dist - # - run: | - # if [ -e dist/*.tar.gz ]; then - # mv dist/*.tar.gz ./ - # fi - # # matrix の中で1個だけソースディストリビューション用のデータを残しておく - # - run: mv *.tar.gz dist/ - # if: ${{ matrix.platform.name == 'macos-13_arm64' && matrix.python_version == '3.8' }} + publish_wheel: + if: contains(github.ref, 'tags/202') + needs: + - build_linux_macos + - build_windows + strategy: + fail-fast: false + matrix: + platform: + - name: ubuntu-22.04_x86_64 + - name: ubuntu-20.04_armv8_jetson + - 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 + steps: + - uses: actions/download-artifact@v3 + with: + name: ${{ matrix.platform.name }}_python-${{ matrix.python_version }} + path: dist + - run: | + if [ -e dist/*.tar.gz ]; then + mv dist/*.tar.gz ./ + fi + # matrix の中で1個だけソースディストリビューション用のデータを残しておく + - run: mv *.tar.gz dist/ + if: ${{ matrix.platform.name == 'macos-13_arm64' && matrix.python_version == '3.8' }} - # # テスト用 - # # - 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 + # テスト用 + # - 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 - # # 本番用 - # - name: Publish package to PyPI - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # password: ${{ secrets.PYPI_API_TOKEN }} + # 本番用 + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} create-release: if: contains(github.ref, 'tags/202') @@ -226,6 +226,5 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 with: - draft: true files: ${{ steps.env.outputs.package_paths }}