diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..1eccdfb --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,35 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: '21' + + - name: Build + run: | + chmod +x ./gradlew + ./gradlew build + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: build + path: | + ./build/libs/*.jar + !./build/libs/*-sources.jar + compression-level: 0 + if-no-files-found: error \ No newline at end of file