-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (59 loc) · 2.27 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on-push to main
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment: elevate-dev
env:
VITE_SERVER_ENDPOINT: ${{ secrets.VITE_SERVER_ENDPOINT }}
VITE_HASURA_GQL_ENDPOINT: ${{ secrets.VITE_HASURA_GQL_ENDPOINT }}
HASURA_ADMIN_SECRET: ${{ secrets.HASURA_ADMIN_SECRET }}
PG_HOST: ${{ secrets.PG_HOST }}
PG_USERNAME: ${{ secrets.PG_USERNAME }}
PG_PASSWORD: ${{ secrets.PG_PASSWORD }}
PG_PORT: ${{ secrets.PG_PORT }}
PG_DATABASE: ${{ secrets.PG_DATABASE }}
PG_SSL: ${{ secrets.PG_SSL }}
VITE_FB_API_KEY: ${{ secrets.VITE_FB_API_KEY }}
VITE_FB_AUTH_DOMAIN: ${{ secrets.VITE_FB_AUTH_DOMAIN }}
VITE_FB_PROJECT_ID: ${{ secrets.VITE_FB_PROJECT_ID }}
VITE_FB_STORAGE_BUCKET: ${{ secrets.VITE_FB_STORAGE_BUCKET }}
VITE_FB_MESSAGING_SENDER_ID: ${{ secrets.VITE_FB_MESSAGING_SENDER_ID }}
VITE_FB_APP_ID: ${{ secrets.VITE_FB_APP_ID }}
VITE_COMMIT_SHA: ${{ github.sha }}
VITE_HEAD_REF: ${{ github.head_ref }}
defaults:
run:
working-directory: ./services/client
steps:
- uses: actions/checkout@v2
- run: yarn install && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
entryPoint: ./services/client
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ELEVATE_APP_DEV }}'
channelId: live
projectId: elevate-0
# slackNotification:
# needs: build_and_deploy
# name: Slack Notification
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Slack Notification
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_TITLE: ${{ github.event.head_commit.message }}
# SLACK_MESSAGE: 'https://elevate-app-dev.web.app @channel'
# SLACK_FOOTER: ''
# SLACK_ICON: 'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png'
# SLACK_USERNAME: 'Elevate Updates Bot'
# MSG_MINIMAL: true
# SLACK_LINK_NAMES: true