From c23bc90378329483c2eec681505224af49c4eefe Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Fri, 11 Nov 2022 19:12:32 +0100 Subject: [PATCH] feat(ci): add a build action on push --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a2b7340 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +# This workflow will build a Java project with Gradle + +name: Build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 12 + uses: actions/setup-java@v1 + with: + java-version: 12 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build + run: ./gradlew build + - name: Assemble + run: ./gradlew assembleDebug + - name: Upload APKs + uses: actions/upload-artifact@v3 + with: + name: apks + path: | + app/**/build/outputs/apk/debug/*.apk +