Skip to content

Commit

Permalink
[Chore] Generate & update sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
bot-nimble committed Oct 31, 2023
1 parent f393785 commit bf73641
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
10 changes: 8 additions & 2 deletions sample/.github/workflows/android_deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ jobs:
- name: Build Android apk
run: flutter build apk --flavor production --release --build-number $GITHUB_RUN_NUMBER

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

- name: Generate release notes
env:
PR_CONTENT: ${{ steps.PR.outputs.pr_body }}
id: generate-release-notes
run: |
echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_OUTPUT
echo "RELEASE_NOTE_CONTENT=$PR_CONTENT" >> $GITHUB_OUTPUT
- name: Deploy Android Production to Firebase
uses: wzieba/[email protected]
Expand All @@ -63,4 +69,4 @@ jobs:
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }}
releaseNotes: ${{ steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT }}
file: build/app/outputs/flutter-apk/app-production-release.apk
file: build/app/outputs/flutter-apk/app-production-debug.apk
8 changes: 7 additions & 1 deletion sample/.github/workflows/android_deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ jobs:
- 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: Generate release notes
env:
PR_TITLE: ${{ steps.PR.outputs.pr_title }}
id: generate-release-notes
run: |
echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_OUTPUT
echo "RELEASE_NOTE_CONTENT=$PR_TITLE" >> $GITHUB_OUTPUT
- name: Deploy Android Staging to Firebase
uses: wzieba/[email protected]
Expand Down
12 changes: 11 additions & 1 deletion sample/.github/workflows/ios_deploy_staging_to_firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,17 @@ jobs:
ENV: ${{ secrets.ENV }}
run: |
echo -e "$ENV" > .env.staging
echo "RELEASE_NOTE_CONTENT="$((git log -1 --merges | grep "\[") | grep . && echo "" || echo $(git log -1 --merges --format=%B))"" >> $GITHUB_ENV
- name: Get PR information
uses: 8BitJonny/[email protected]
id: PR

- name: Generate release notes
id: generate-release-notes
env:
PR_TITLE: ${{ steps.PR.outputs.pr_title }}
run: |
echo "RELEASE_NOTE_CONTENT=$PR_TITLE" >> $GITHUB_ENV
- name: Run code generator
run: flutter packages pub run build_runner build --delete-conflicting-outputs
Expand Down

0 comments on commit bf73641

Please sign in to comment.