diff --git a/.github/workflows/android-cd.yml b/.github/workflows/android-cd.yml new file mode 100644 index 00000000..a436e8cc --- /dev/null +++ b/.github/workflows/android-cd.yml @@ -0,0 +1,27 @@ +name: Android CD + +on: + workflow_run: + workflows: [Android CI] + types: [completed] + branches: [develop] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + + - name: Build debug apk + run: ./gradlew assembleDebug --stacktrace + + - name: Upload apk to Firebase App Distribution + uses: wzieba/Firebase-Distribution-Github-Action@v1 + with: + appId: ${{ secrets.FIREBASE_APP_ID }} + token: ${{ secrets.FIREBASE_TOKEN }} + groups: all-the-time + file: app/build/outputs/apk/debug/app-debug.apk + releaseNotes: | + ${{ github.event.pull_request.title }} + ${{ github.event.pull_request.html_url }} + ${{ github.event.pull_request.body }} \ No newline at end of file diff --git a/.github/workflows/android-ci-cd.yml b/.github/workflows/android-ci.yml similarity index 67% rename from .github/workflows/android-ci-cd.yml rename to .github/workflows/android-ci.yml index c1418020..2bc2d1ad 100644 --- a/.github/workflows/android-ci-cd.yml +++ b/.github/workflows/android-ci.yml @@ -1,4 +1,4 @@ -name: Android CI/CD +name: Android CI on: pull_request: @@ -48,19 +48,4 @@ jobs: - name: Android Test Report uses: asadmansr/android-test-report-action@v1.2.0 - if: ${{ always() }} - - - name: Build debug apk - run: ./gradlew assembleDebug --stacktrace - - - name: Upload apk to Firebase App Distribution - uses: wzieba/Firebase-Distribution-Github-Action@v1 - with: - appId: ${{ secrets.FIREBASE_APP_ID }} - token: ${{ secrets.FIREBASE_TOKEN }} - groups: all-the-time - file: app/build/outputs/apk/debug/app-debug.apk - releaseNotes: | - ${{ github.event.pull_request.title }} - ${{ github.event.pull_request.html_url }} - ${{ github.event.pull_request.body }} \ No newline at end of file + if: ${{ always() }} \ No newline at end of file