Merge pull request #284 from nimblehq/chore/bump-version-to-1.14.0 #1
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
name: iOS - Deploy Staging build to Firebase | |
on: | |
# Trigger the workflow on push action | |
push: | |
branches: | |
- develop | |
jobs: | |
build_and_deploy_ios: | |
name: iOS - Deploy Staging build to Firebase | |
runs-on: macOS-latest | |
environment: staging | |
env: | |
TEAM_ID: ${{ secrets.TEAM_ID }} | |
FASTLANE_USER: ${{ secrets.FASTLANE_USER }} | |
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} | |
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }} | |
FASTLANE_SESSION: ${{ secrets.FASTLANE_SESSION }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | |
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }} | |
FIREBASE_APP_ID: ${{ vars.FIREBASE_IOS_APP_ID }} | |
FIREBASE_DISTRIBUTION_TESTER_GROUPS: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }} | |
GITHUB_RUN_NUMBER: $GITHUB_RUN_NUMBER | |
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@v1 | |
with: | |
channel: 'stable' | |
flutter-version: '3.10.5' | |
- name: Generate new project | |
run: | | |
dart pub global activate mason_cli | |
mason get | |
mason make template -c mason-config.json | |
- name: Get Flutter dependencies | |
run: flutter pub get | |
- name: Set up .env.staging | |
env: | |
ENV: ${{ secrets.ENV }} | |
run: | | |
echo -e "$ENV" > .env.staging | |
- name: Find HEAD commit | |
id: head | |
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | |
- name: Limit changelog to the latest pull request only | |
uses: jossef/action-set-json-field@v2 | |
with: | |
file: .github/workflows/configs/changelog-config.json | |
field: max_pull_requests | |
value: 1 | |
- name: Build changelog on "develop" | |
id: changelog | |
uses: mikepenz/release-changelog-builder-action@v4 | |
with: | |
configuration: ".github/workflows/configs/changelog-config.json" | |
# Listing PRs from the last tag to the HEAD commit | |
toTag: ${{ steps.head.outputs.sha }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run code generator | |
run: flutter packages pub run build_runner build --delete-conflicting-outputs | |
- name: Bundle install | |
run: cd ./ios && bundle install | |
- name: Pod install | |
run: cd ./ios && pod install | |
- name: Match Adhoc | |
run: cd ./ios && bundle exec fastlane sync_adhoc_staging_signing | |
- name: Deploy to Firebase | |
env: | |
RELEASE_NOTE_CONTENT: ${{ steps.changelog.outputs.changelog }} | |
run: | | |
cd ./ios && bundle exec fastlane build_and_upload_staging_app |