diff --git a/.github/workflows/android-build-master.yml b/.github/workflows/build.yml similarity index 57% rename from .github/workflows/android-build-master.yml rename to .github/workflows/build.yml index 8a9c29e94..7ed616e54 100644 --- a/.github/workflows/android-build-master.yml +++ b/.github/workflows/build.yml @@ -1,29 +1,29 @@ name: Build on: - pull_request: - branches: - - 'master' push: - branches: - - 'master' - + workflow_dispatch: + jobs: build: name: Generate APK - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2 + - name: Setup JDK uses: actions/setup-java@v2 with: - distribution: 'zulu' - java-version: '11' + distribution: zulu + java-version: 11 + - name: Build APK - run: ./gradlew assembleDebug + run: ./gradlew assembleRelease + - name: Upload APK uses: actions/upload-artifact@v2 with: - name: orgzly-debug-app + name: orgzly-release path: '**/*.apk'