Skip to content

Deploy

Deploy #18

Workflow file for this run

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy
on:
workflow_run:
workflows: [Build]
types:
- completed
jobs:
deploy_dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: build
path: dist
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Copy environment config
run: cp .github/environments/dev.json dist/bootstrap.json
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MOBILITY_MAP_DEMO_DEV }}'
channelId: live
projectId: mobility-map-demo-dev
deploy_staging:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: build
path: dist
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Copy environment config
run: cp .github/environments/staging.json dist/bootstrap.json
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MOBILITY_MAP_DEMO_STAGING }}'
channelId: live
projectId: mobility-map-demo-staging
deploy_prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: build
path: dist
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Copy environment config
run: cp .github/environments/prod.json dist/bootstrap.json
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MOBILITY_MAP_DEMO_PROD }}'
channelId: live
projectId: mobility-map-demo-prod