File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments