From 26325b1017127c9e60030c19db57480d8e88e1ce Mon Sep 17 00:00:00 2001 From: Billy Robinson Date: Wed, 12 Mar 2025 00:41:25 +0000 Subject: [PATCH 1/2] [LB-41] Always send release message in discord upon failure to publish --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ce0d647..acdc14c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -51,6 +51,7 @@ jobs: # Step 9: Send notification to Discord - name: Send notification to Discord + if: always() uses: SethCohen/github-releases-to-discord@v1.16.2 with: webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }} From 8b655f5f15f8d9418b46fcf5800e6e487e77b80e Mon Sep 17 00:00:00 2001 From: Billy Robinson Date: Wed, 12 Mar 2025 00:43:10 +0000 Subject: [PATCH 2/2] add pr building check too --- .github/workflows/build.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..0960869 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,34 @@ +name: 🛠️ Build with Gradle + +on: + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + # Step 1: Checkout the code and clone submodules + - name: Checkout code and clone submodules + uses: actions/checkout@v4 + + # Step 2: Set up JDK 21 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: "21" + distribution: "temurin" + + # Step 3: Setup Gradle + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + cache-read-only: false + + # Step 4: Grant execute permissions to gradlew + - name: Grant execute permissions to gradlew + run: chmod +x ./gradlew + + # Step 5: Build the project using Gradle + - name: Build with Gradle + run: ./gradlew build \ No newline at end of file