Skip to content

Commit

Permalink
[#198] print release notes body
Browse files Browse the repository at this point in the history
  • Loading branch information
doannimble committed Nov 3, 2023
1 parent 2d38218 commit 2c9235b
Showing 1 changed file with 3 additions and 42 deletions.
45 changes: 3 additions & 42 deletions .github/workflows/android_deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,49 +16,10 @@ jobs:
- name: Check out
uses: actions/checkout@v3

- name: Set up Java JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'

- name: Set up Flutter environment
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.10.5'

- name: Generate new project
run: |
dart pub global activate mason_cli
mason get
mason make template -c mason-config.json
- name: Get Flutter dependencies
run: flutter pub get

- name: Run code generator
run: flutter packages pub run build_runner build --delete-conflicting-outputs

- name: Set up .env.staging
env:
ENV: ${{ secrets.ENV }}
run: |
echo -e "$ENV" > .env.staging
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa
- name: Build Android apk
run: flutter build apk --flavor staging --debug --build-number $GITHUB_RUN_NUMBER

- name: Get PR information
uses: 8BitJonny/[email protected]
id: PR

- name: Deploy Android Staging to Firebase
uses: wzieba/[email protected]
with:
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }}
releaseNotes: ${{ steps.PR.outputs.pr_title }}
file: build/app/outputs/flutter-apk/app-staging-debug.apk
- name: Print release notes
run: |
echo ${{ steps.PR.outputs.pr_body }}

0 comments on commit 2c9235b

Please sign in to comment.