-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (38 loc) · 1.44 KB
/
firebase-hosting-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Build & Deploy 🚀
'on':
push:
branches:
- master
jobs:
build_and_deploy:
environment: 'production'
env:
VITE_APP_TITLE: ${{ vars.VITE_APP_TITLE }}
VITE_APP_DESCRIPTION: ${{ vars.VITE_APP_DESCRIPTION }}
VITE_APP_WEBSITE: ${{ vars.VITE_APP_WEBSITE }}
VITE_APP_IMG: ${{ vars.VITE_APP_IMG }}
VITE_APP_KEYWORDS: ${{ vars.VITE_APP_KEYWORDS }}
VITE_APP_LANG: ${{ vars.VITE_APP_LANG }}
VITE_APP_GRAPHQL_URL: ${{ vars.VITE_APP_GRAPHQL_URL }}
VITE_APP_GRAPHQL_SECRET: ${{ secrets.VITE_APP_GRAPHQL_SECRET }}
runs-on: ubuntu-latest
steps:
- name: Check variables
run: |
echo "VITE_APP_TITLE: $VITE_APP_TITLE"
echo "VITE_APP_DESCRIPTION: $VITE_APP_DESCRIPTION"
echo "VITE_APP_WEBSITE: $VITE_APP_WEBSITE"
echo "VITE_APP_IMG: $VITE_APP_IMG"
echo "VITE_APP_KEYWORDS: $VITE_APP_KEYWORDS"
echo "VITE_APP_LANG: $VITE_APP_LANG"
echo "VITE_APP_GRAPHQL_URL: $VITE_APP_GRAPHQL_URL"
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WHATSHOULDIDESIGN }}'
channelId: live
projectId: whatshouldidesign