Skip to content

Merge pull request #977 from Doraemon012/code_i1 #282

Merge pull request #977 from Doraemon012/code_i1

Merge pull request #977 from Doraemon012/code_i1 #282

Workflow file for this run

name: Build and Deploy to Firebase Hosting
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install dependencies
working-directory: ./
run: npm install --legacy-peer-deps
- name: Build
working-directory: ./
run: npm run build
env:
VITE_APP_FIREBASE_API_KEY: ${{ secrets.VITE_APP_FIREBASE_API_KEY }}
VITE_APP_FIREBASE_PROJECT_ID: ${{ secrets.VITE_APP_FIREBASE_PROJECT_ID }}
VITE_APP_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_APP_FIREBASE_MESSAGING_SENDER_ID }}
VITE_APP_FIREBASE_APP_ID: ${{ secrets.VITE_APP_FIREBASE_APP_ID }}
VITE_APP_FIREBASE_MEASUREMENTID: ${{ secrets.VITE_APP_FIREBASE_MEASUREMENTID }}
VITE_APP_FIREBASE_FCM_VAPID_KEY: ${{ secrets.VITE_APP_FIREBASE_FCM_VAPID_KEY }}
VITE_APP_AUTH_DOMAIN: ${{ secrets.VITE_APP_AUTH_DOMAIN }}
VITE_APP_DATABASE_URL: ${{secrets.VITE_APP_DATABASE_URL}}
SKIP_PREFLIGHT_CHECK: true
CI: false
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: build
path: ./build
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: build
path: ./build
- name: GitHub Action for Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_ID: ${{ secrets.VITE_APP_FIREBASE_PROJECT_ID }}
PROJECT_PATH: ./