Skip to content

Commit

Permalink
Merge branch 'fix/#157-update-cd' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
915dbfl committed Nov 11, 2023
2 parents dbcf1f7 + c9ffba3 commit b5f4614
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/android-cd.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Android CI/CD
name: Android CI

on:
pull_request:
Expand Down Expand Up @@ -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 }}
if: ${{ always() }}

0 comments on commit b5f4614

Please # to comment.