From 813a20df0f9dafc6ee2e4a492172e519e0c576df Mon Sep 17 00:00:00 2001 From: Vanilla Date: Tue, 19 Apr 2022 20:13:27 +0800 Subject: [PATCH] feat[build_commit]: GitHub Actions, Build + Upload artifacts per commit. --- .github/workflows/build_commit.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build_commit.yaml diff --git a/.github/workflows/build_commit.yaml b/.github/workflows/build_commit.yaml new file mode 100644 index 0000000..62f89fd --- /dev/null +++ b/.github/workflows/build_commit.yaml @@ -0,0 +1,20 @@ +name: "Build + Upload artifacts" +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: temurin + java-version: 11 + + - uses: gradle/gradle-build-action@v2 + - run: gradle assembleDebug + + - uses: actions/upload-artifact@v3 + with: + name: ${{ github.sha }} + path: app/build/outputs/apk/debug/app-debug.apk