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.
[#198] Add Generate release notes for android and ios deployment
- Loading branch information
1 parent
f92f0d4
commit f393785
Showing
8 changed files
with
52 additions
and
10 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 |
---|---|---|
|
@@ -57,10 +57,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] | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- develop | ||
- chore/198-add-release-note-firebase-deploy | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
|
@@ -50,10 +49,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 |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- develop | ||
- chore/198-add-release-note-firebase-deploy | ||
|
||
jobs: | ||
build_and_deploy_ios: | ||
|
@@ -52,7 +51,17 @@ jobs: | |
ENV: ${{ secrets.ENV }} | ||
run: | | ||
echo -e "$ENV" > .env.staging | ||
echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | 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 | ||
|
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: ${{#mustacheCase}}steps.PR.outputs.pr_body{{/mustacheCase}} | ||
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] | ||
|
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: ${{#mustacheCase}}steps.PR.outputs.pr_title{{/mustacheCase}} | ||
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: ${{#mustacheCase}}secrets.ENV{{/mustacheCase}} | ||
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: ${{#mustacheCase}}steps.PR.outputs.pr_title{{/mustacheCase}} | ||
run: | | ||
echo "RELEASE_NOTE_CONTENT=$PR_TITLE" >> $GITHUB_ENV | ||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
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
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