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 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 }}