forked from cBioPortal/cbioportal-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This GitHub Actions workflow triggers a JitPack build for the cbioportal-frontend repository whenever a new release is created. | ||
# It constructs the JitPack build URL using the release tag and sends a request to initiate the build process. | ||
name: Trigger JitPack Build on New Release | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
- prereleased | ||
|
||
jobs: | ||
trigger_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get release tag | ||
id: get_tag | ||
run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}" | ||
|
||
- name: Trigger JitPack Build | ||
run: | | ||
TAG=${{ steps.get_tag.outputs.tag }} | ||
JITPACK_BUILD_URL="https://jitpack.io/com/github/cbioportal/cbioportal-frontend/$TAG/build.log" | ||
echo "Triggering JitPack build for $TAG" | ||
curl -I $JITPACK_BUILD_URL | ||
- name: Notify success | ||
run: echo "JitPack build triggered successfully." |