-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from nimblehq/release/0.1.0
[Release] 0.1.0
- Loading branch information
Showing
124 changed files
with
4,955 additions
and
85 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SECRET= | ||
REST_API_ENDPOINT= |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Team | ||
# @minhnimble is the Engineering Lead | ||
# @nkhanh44 is the Team Lead | ||
* @nkhanh44 @Thieurom @doannimble @minhnimble |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
--- | ||
name: "Chore" | ||
about: "Open a chore issue for a minor update." | ||
about: "Open a Chore for minor update." | ||
title: "Update " | ||
labels: "type : chore" | ||
--- | ||
|
||
## Why | ||
|
||
Describe the update in detail and why it is needed. | ||
|
||
Describe the update details and why it's needed. | ||
## Who Benefits? | ||
|
||
Describe who will be the beneficiaries e.g. everyone, specific chapters, clients... |
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Android - Deploy Production build to Firebase | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
name: Build & Deploy Android | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- 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: 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 | ||
env: | ||
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }} | ||
run: | | ||
echo $ENV_PRODUCTION > .env | ||
# App Bundle requires Firebase connected to Play Store to upload https://appdistribution.page.link/KPoa | ||
- name: Build Android apk | ||
run: flutter build apk --flavor production --debug --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Deploy Android Production to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID_PRODUCTION }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} | ||
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }} | ||
file: build/app/outputs/flutter-apk/app-production-debug.apk |
52 changes: 52 additions & 0 deletions
52
.github/workflows/android_deploy_production_to_playstore.yml
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Android - Deploy Production build to Play Store | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
name: Build & Deploy Android | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- 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: 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 | ||
env: | ||
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }} | ||
run: | | ||
echo $ENV_PRODUCTION > .env | ||
- name: Build Production App Bundle | ||
run: flutter build appbundle --flavor production --release --build-number $GITHUB_RUN_NUMBER | ||
|
||
- name: Upload Android Production Release bundle to Play Store | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJson: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} | ||
packageName: co.nimblehq.khanhthieu.survey | ||
releaseFile: build/app/outputs/bundle/productionRelease/app-production-release.aab | ||
track: internal | ||
userFraction: 1.0 | ||
whatsNewDirectory: .github/workflows/whatsnew |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Android - Deploy Staging build to Firebase | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build_and_deploy_android: | ||
name: Build & Deploy Android | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- 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: 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_STAGING: ${{ secrets.ENV_STAGING }} | ||
run: | | ||
echo $ENV_STAGING > .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: Deploy Android Staging to Firebase | ||
uses: wzieba/[email protected] | ||
with: | ||
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID_STAGING }} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_STAGING_DISTRIBUTION_CREDENTIAL_JSON }} | ||
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }} | ||
file: build/app/outputs/flutter-apk/app-staging-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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Bump Version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
newVersion: | ||
description: "New version" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
bump_version: | ||
name: Bump version | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set new version | ||
run: | | ||
perl -i -pe 's/^(version:\s+\d+\.\d+\.\d+\+)(\d+)$/"version: ${{ github.event.inputs.newVersion }}+".($2+1)/e' ./pubspec.yaml | ||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
assignees: ${{ secrets.GITHUB_USER }} | ||
token: ${{ secrets.WIKI_ACTION_TOKEN }} | ||
commit-message: Bump version to ${{ github.event.inputs.newVersion }} | ||
committer: Nimble Bot <[email protected]> | ||
branch: chore/bump-version-to-${{ github.event.inputs.newVersion }} | ||
delete-branch: true | ||
title: '[Chore] Bump version to ${{ github.event.inputs.newVersion }}' | ||
labels: | | ||
type : chore | ||
body: | | ||
## What happened 👀 | ||
Bump version to ${{ github.event.inputs.newVersion }} | ||
## Insight 📝 | ||
Automatically created by the Bump Version workflow. | ||
## Proof Of Work 📹 | ||
On the Files changed tab |
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: iOS - Deploy Production build to TestFlight | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_and_upload_production_to_testflight: | ||
name: Build and upload iOS Production build to TestFlight | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install SSH key | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Set up Flutter environment | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: '3.10.5' | ||
- run: flutter --version | ||
|
||
- name: Set up deployment environment | ||
env: | ||
ENV_PRODUCTION: ${{ secrets.ENV_PRODUCTION }} | ||
run: echo "$ENV_PRODUCTION" > .env | ||
|
||
- name: Get Flutter dependencies | ||
run: flutter pub get | ||
|
||
- name: Run code generator | ||
run: flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Cache Ruby gems | ||
uses: actions/cache@v3 | ||
id: bunlderCache | ||
with: | ||
path: ios/vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: ${{ runner.os }}-gems- | ||
|
||
- name: Cache Pods | ||
uses: actions/cache@v3 | ||
id: cocoapodCache | ||
with: | ||
path: ios/Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: ${{ runner.os }}-pods- | ||
|
||
- name: Install iOS dependencies | ||
run: cd ios && bundle install --path vendor/bundle && bundle exec pod install | ||
|
||
- name: Sync certificates and profiles | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSPHRASE }} | ||
run: cd ios && bundle exec fastlane sync_appstore_production_signing | ||
|
||
- name: Build and Deploy to TestFlight | ||
env: | ||
BUILD_NUMBER: ${{ github.run_number }} | ||
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | ||
APPSTORE_CONNECT_API_KEY_ID: ${{ secrets.APPSTORE_CONNECT_API_KEY_ID }} | ||
APPSTORE_CONNECT_ISSUER_ID: ${{ secrets.APPSTORE_CONNECT_ISSUER_ID }} | ||
APPSTORE_CONNECT_API_KEY_CONTENT: ${{ secrets.APPSTORE_CONNECT_API_KEY_CONTENT }} | ||
run: cd ios && bundle exec fastlane build_and_upload_production_to_testflight |
Oops, something went wrong.