From ab38dcba0dd7c087a70138548211e31005d9d7cb Mon Sep 17 00:00:00 2001 From: jianfengmao Date: Thu, 24 Oct 2024 14:51:21 -0600 Subject: [PATCH] Complete release action for FT builds --- .github/workflows/build_ft_wheel.yml | 32 +++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_ft_wheel.yml b/.github/workflows/build_ft_wheel.yml index 9bee2ba..9e0d8f2 100644 --- a/.github/workflows/build_ft_wheel.yml +++ b/.github/workflows/build_ft_wheel.yml @@ -63,7 +63,7 @@ jobs: path: dist/*.whl retention-days: 1 - bdist-wheels-linux-aarch64: + bdist-wheels-linux-arm64: runs-on: ${{ matrix.info.machine }} strategy: fail-fast: false @@ -103,3 +103,33 @@ jobs: path: dist/*.whl retention-days: 1 + collect-artifacts: + runs-on: ubuntu-22.04 + needs: ['bdist-wheels', 'bdist-wheels-windows', 'bdist-wheels-linux-arm64'] + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + path: download-artifacts + - name: collect-artifacts.sh + run: .github/scripts/collect-artifacts.sh + - uses: actions/upload-artifact@v4 + with: + name: jpy-ft + path: collect-artifacts + + release-artifacts: + if: ${{ startsWith(github.ref, 'refs/heads/release/v') }} + runs-on: ubuntu-22.04 + needs: ['collect-artifacts'] + steps: + - uses: actions/download-artifact@v4 + with: + name: jpy-ft + path: dist + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} +