Skip to content

Commit

Permalink
[CI] Add scripts to automatically bump version and release wheels & a…
Browse files Browse the repository at this point in the history
…dd option to trigger build manually (#93)

Copied from Punica project.

Co-authored-by: Lequn Chen <[email protected]>
  • Loading branch information
yzh119 and abcdabcd987 authored Jan 29, 2024
1 parent 08aee43 commit 7f89bf3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release_please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Automatically bump version and release Python wheels
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}

wheel:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/release_wheel.yml
with:
tag_name: ${{ needs.release-please.outputs.tag_name }}
secrets: inherit
1 change: 1 addition & 0 deletions .github/workflows/release_wheel.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Adapted from https://github.com/punica-ai/punica/blob/591b59899f0a20760821785d06b331c8a2e5cb86/.github/workflows/release_wheel.yml
name: Release
on:
workflow_dispatch:
workflow_call:
inputs:
tag_name:
Expand Down

0 comments on commit 7f89bf3

Please sign in to comment.