Skip to content

Commit

Permalink
Create a release with whl files when tag
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Feb 24, 2025
1 parent 20f748c commit 54d7205
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/gr-python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
branches:
- '**'
tags:
- '**'
- 'v*'
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -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

0 comments on commit 54d7205

Please sign in to comment.