Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down