generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] Generate & update sample project
- Loading branch information
1 parent
f393785
commit bf73641
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|