CharlVS is deploying RC build to Firebase π #3
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
# Deploys a Release Candidate build to Firebase Hosting (https://walletrc.web.app) when pushing/merging commits into the `dev` branch. | |
name: Deploy RC to Firebase Hosting on merge | |
run-name: ${{ github.actor }} is deploying RC build to Firebase π | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Shortify commit sha | |
shell: bash | |
run: echo "sha_short=$(echo ${GITHUB_SHA::7})" >> $GITHUB_OUTPUT | |
id: shortify_commit | |
- name: Get branch | |
shell: bash | |
run: echo "ref_short=$(echo ${GITHUB_REF##*/})" >> $GITHUB_OUTPUT | |
id: get_branch | |
- name: Setup GH Actions | |
uses: actions/checkout@v4 | |
- name: Install Flutter and dependencies | |
uses: ./.github/actions/flutter-deps | |
- name: Fetch packages and generate assets | |
uses: ./.github/actions/generate-assets | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Validate build | |
uses: ./.github/actions/validate-build | |
- name: Deploy Komodo Wallet Web dev preview (`dev` branch) | |
if: github.ref == 'refs/heads/dev' | |
uses: FirebaseExtended/[email protected] | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOMODO_WALLET_OFFICIAL }}' | |
channelId: live | |
target: walletrc | |
projectId: komodo-wallet-official | |
- name: Deploy Komodo Wallet Web RC (`main` branch) | |
if: github.ref == 'refs/heads/main' | |
uses: FirebaseExtended/[email protected] | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOMODO_WALLET_OFFICIAL }}' | |
channelId: live | |
target: prodrc | |
projectId: komodo-wallet-official | |