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] Use change log for production release
- Loading branch information
1 parent
ff16640
commit 0b8bb5a
Showing
5 changed files
with
13 additions
and
18 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,15 +57,15 @@ 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: Build Changelog | ||
id: build_changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
|
||
- name: Deploy Android Production 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_body }} | ||
releaseNotes: ${{ steps.build_changelog.outputs.changelog }} | ||
file: build/app/outputs/flutter-apk/app-production-release.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 |
---|---|---|
|
@@ -51,15 +51,15 @@ 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: Build Changelog | ||
id: build_changelog | ||
uses: mikepenz/release-changelog-builder-action@v4 | ||
|
||
- name: Deploy Android Production to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{#mustacheCase}}vars.FIREBASE_ANDROID_APP_ID{{/mustacheCase}} | ||
serviceCredentialsFileContent: ${{#mustacheCase}}secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON{{/mustacheCase}} | ||
groups: ${{#mustacheCase}}vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS{{/mustacheCase}} | ||
releaseNotes: ${{#mustacheCase}}steps.PR.outputs.pr_body{{/mustacheCase}} | ||
releaseNotes: ${{#mustacheCase}}steps.build_changelog.outputs.changelog{{/mustacheCase}} | ||
file: build/app/outputs/flutter-apk/app-production-release.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,17 +46,10 @@ jobs: | |
run: | | ||
echo -e "$ENV" > .env.staging | ||
- name: Get PR information | ||
- 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 | ||
|
||
|
@@ -70,5 +63,7 @@ jobs: | |
run: cd ./ios && bundle exec fastlane sync_adhoc_staging_signing | ||
|
||
- name: Deploy to Firebase | ||
env: | ||
RELEASE_NOTE_CONTENT:${{ steps.PR.outputs.pr_title }} | ||
run: | | ||
cd ./ios && bundle exec fastlane build_and_upload_staging_app |