From 54416b5140d5c0dea9e870fcf176b4384bea356e Mon Sep 17 00:00:00 2001 From: A2 Geek Date: Sat, 28 Oct 2023 11:37:26 -0500 Subject: [PATCH] Adding automatic builds --- .github/workflows/gradle.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..001deb1 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,40 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle + +name: Build AppleSingle 'asu' CLI and API + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + with: + arguments: build + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: tools/asu/build/libs/applesingle-tools-asu-*.jar + if-no-files-found: error