| name: Build APK |
| |
| on: |
| push: |
| branches: ["master"] |
| workflow_dispatch: |
| |
| concurrency: |
| group: "build" |
| cancel-in-progress: true |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| steps: |
| - name: Checkout |
| uses: actions/checkout@v3 |
| - name: Setup Java JDK |
| uses: actions/setup-java@v3.9.0 |
| with: |
| java-version: 11 |
| distribution: adopt |
| - name: Gradle Build Action |
| run: ./gradlew :FaceExample:assembleDebug |
| - name: Upload artifact |
| uses: actions/upload-artifact@v2 |
| with: |
| name: FaceExample-debug.apk |
| path: FaceExample/build/outputs/apk/debug/FaceExample-debug.apk |