From 54d720587a040e6a9a910a5368903a49ed1593d0 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Mon, 24 Feb 2025 12:23:59 +0100 Subject: [PATCH] Create a release with whl files when tag --- .github/workflows/gr-python-release.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gr-python-release.yml b/.github/workflows/gr-python-release.yml index 261cda1b8700e..f0877703404e3 100644 --- a/.github/workflows/gr-python-release.yml +++ b/.github/workflows/gr-python-release.yml @@ -22,7 +22,7 @@ on: branches: - '**' tags: - - '**' + - 'v*' pull_request: workflow_dispatch: @@ -106,3 +106,24 @@ jobs: name: Wheel Python ${{ matrix.python_version }} path: arrow/python/dist/pyarrow-*.whl + release: + name: "Release Wheel files" + if: startsWith(github.ref, 'refs/tags/v') + needs: python + runs-on: ubuntu-latest + steps: + - name: Download Wheel files + uses: actions/download-artifact@v4 + with: + path: dist/ + - name: Create GitHub Release + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release create ${GITHUB_REF_NAME} \ + --repo ${GITHUB_REPOSITORY} \ + --verify-tag \ + --title "${GITHUB_REF_NAME/*\//}" \ + --notes "TODO" \ + dist/pyarrow-*.whl +