Skip to content

done mvp skeleton

done mvp skeleton #6

# 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