From a96753826fe644f0fbd7b9ceb0a4ab2c2a614028 Mon Sep 17 00:00:00 2001 From: SC Van Nostrand Date: Mon, 29 Jan 2024 12:29:07 -0500 Subject: [PATCH] Create jitpack-build.yml --- .github/workflows/jitpack-build.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/jitpack-build.yml diff --git a/.github/workflows/jitpack-build.yml b/.github/workflows/jitpack-build.yml new file mode 100644 index 00000000000..afb7152c9f5 --- /dev/null +++ b/.github/workflows/jitpack-build.yml @@ -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." \ No newline at end of file