From cd0d41b786d51c05ee9dd087d5b406111c818682 Mon Sep 17 00:00:00 2001 From: Nick <41928812+nickuc@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:42:23 -0300 Subject: [PATCH] Add build workflow --- .github/workflows/gradle.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..4f3dacf --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,27 @@ +name: OpenLogin Build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'adopt' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 + - name: Build with Gradle + run: ./gradlew build --full-stacktrace + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: Artifacts + path: openlogin-universal/build/libs/OpenLogin.jar