Skip to content

✏️ fixed action #29

✏️ fixed action

✏️ fixed action #29

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
env:
RESOURCE_DIR: functions
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
run: npm install
working-directory: ${{ env.RESOURCE_DIR }}
- name: Build
run: npm run build-prod
working-directory: ${{ env.RESOURCE_DIR }}
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: dist
path: dist
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: dist
path: dist
- name: Deploy to Firebase
uses: docker://w9jds/firebase-action:master
with:
args: functions:config:set sheets.api_key=${{ secrets.API_KEY }} sheets.measurement_id=${{ secrets.MEASURE_ID }} sheets.api_secret=${{ secrets.API_SECRET }} sheets.client_id=${{ secrets.CLIENT_ID }}; firebase deploy --only functions --force
env:
GCP_SA_KEY: ${{ secrets.SA_KEY }}