diff --git a/.github/workflows/build_artifact.yml b/.github/workflows/build_artifact.yml new file mode 100644 index 0000000..5a6f8e5 --- /dev/null +++ b/.github/workflows/build_artifact.yml @@ -0,0 +1,32 @@ +name: Build artifacts + +on: [push] + + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Make gradle wrapper excecutable + if: ${{ runner.os != 'Windows' }} + run: chmod +x ./gradlew + + - name: Build with Gradle + uses: gradle/gradle-build-action@v2 + with: + arguments: build + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: Artifacts + path: build/libs/