From 91b8ba4ca3f9809fe0d7b0d650ca8b1dee5871a7 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Sun, 2 Apr 2023 18:05:04 +0900 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8113b02..cbe333e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,3 +16,30 @@ jobs: - uses: taiki-e/create-gh-release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} + pypi: + strategy: + matrix: + include: + ## permission denied? + # - target: armv7-unknown-linux-gnueabihf + # os: ubuntu-latest + # - target: aarch64-unknown-linux-gnu + # os: ubuntu-latest + - target: aarch64-apple-darwin + os: macos-latest + - target: x86_64-unknown-linux-gnu + os: ubuntu-latest + - target: x86_64-apple-darwin + os: macos-latest + - target: x86_64-pc-windows-msvc + os: windows-latest + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: setup-tools + run: | + rustup update stable + pip install maturin + - name: upload + run: | + maturin publish --release --target ${{ matrix.target }} -u mtshiba -p ${{ secrets.PYPI_PASSWORD }}