diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..fb4fe0dc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build +on: [pull_request] + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Pull Request + uses: actions/checkout@v3 + + - name: Setup JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: temurin + cache: gradle + + - name: Validate Gradle Wrapper Integrity + uses: gradle/wrapper-validation-action@v1 + + - name: Make Gradle wrapper executable + run: chmod +x ./gradlew + + - name: Build + run: ./gradlew build + + - name: Publish Artifacts + uses: actions/upload-artifact@v3 + with: + name: Compiled .jar files + path: build/libs/ \ No newline at end of file