Skip to content

Commit 0af45ec

Browse files
authored
[LB-41] Change github action to always announce releases in discord & enable pr checks (#17)
* [LB-41] Always send release message in discord upon failure to publish * add pr building check too
1 parent 73ac771 commit 0af45ec

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 🛠️ Build with Gradle
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
# Step 1: Checkout the code and clone submodules
12+
- name: Checkout code and clone submodules
13+
uses: actions/checkout@v4
14+
15+
# Step 2: Set up JDK 21
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: "21"
20+
distribution: "temurin"
21+
22+
# Step 3: Setup Gradle
23+
- name: Setup Gradle
24+
uses: gradle/actions/setup-gradle@v3
25+
with:
26+
cache-read-only: false
27+
28+
# Step 4: Grant execute permissions to gradlew
29+
- name: Grant execute permissions to gradlew
30+
run: chmod +x ./gradlew
31+
32+
# Step 5: Build the project using Gradle
33+
- name: Build with Gradle
34+
run: ./gradlew build

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151

5252
# Step 9: Send notification to Discord
5353
- name: Send notification to Discord
54+
if: always()
5455
uses: SethCohen/github-releases-to-discord@v1.16.2
5556
with:
5657
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}

0 commit comments

Comments
 (0)