Merge pull request #2 from VergeDX/main

feat[build_commit]: GitHub Actions, Build + Upload artifacts per commit.
This commit is contained in:
Ashinch 2022-04-20 01:14:39 +08:00 committed by GitHub
commit 423b48bb08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/build_commit.yaml vendored Normal file
View File

@ -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