1.1.15 #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
deploy: | |
name: Deploy to Firebase | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18] | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Yarn | |
run: npm install yarn@latest -g | |
- name: Install Firebase Tools | |
run: npm install firebase-tools -g | |
- name: Install dependencies | |
run: yarn | |
- name: Run build | |
run: yarn build | |
- name: Run deploy | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
run: | | |
firebase use ossph-org && \ | |
firebase deploy --only functions:ossphSSRHandler && \ | |
firebase target:clear hosting prod && \ | |
firebase target:apply hosting prod ossph-org && \ | |
firebase deploy --only hosting:prod |