Feature/onboarding tutorial #69
Workflow file for this run
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
# Configuration for deploy a preview of the PR to a temporary url | |
# The goal is to be able to test the PR before merging it | |
# This action is triggered on every PR, regardless of the branch | |
# The preview url has a lifetime of 7 days | |
# For more information, see https://github.com/marketplace/actions/deploy-to-firebase-hosting#options | |
name: Deploy to Firebase Hosting on PR | |
"on": pull_request | |
env: | |
VITE_WARD_API_BASE_URL: "https://wardanalyticsapi.com" | |
VITE_WARD_API_KEY: ${{ secrets.WARD_API_KEY }} | |
VITE_FIREBASE_API_KEY: "AIzaSyBZCnEQus6G42SodGNRf6o2zmBnGN0nXes" | |
VITE_FIREBASE_AUTH_DOMAIN: "graphapp-dev.firebaseapp.com" | |
VITE_FIREBASE_PROJECT_ID: "graphapp-dev" | |
VITE_FIREBASE_STORAGE_BUCKET: "graphapp-dev.appspot.com" | |
VITE_FIREBASE_MESSAGING_SENDER_ID: "897485812844" | |
VITE_FIREBASE_APP_ID: "1:897485812844:web:039de3b976c1559fded449" | |
# For Google Analytics | |
VITE_FIREBASE_MEASUREMENT_ID: "G-V2S9JPMH7S" | |
jobs: | |
build_and_preview: | |
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: yarn install && yarn build | |
- run: echo "$VITE_FIREBASE_PROJECT_ID" | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_GRAPHAPP_BCA04 }}" | |
expires: 7d | |
projectId: graphapp-bca04 |