Move deployment to draw.marbal.ca #15
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: Build & Deploy to Firebase Hosting | |
on: | |
push: | |
branches: | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-deploy: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
- name: Install build dependencies | |
run: npm install | |
- name: Build | |
run: make min | |
- name: Install deploy dependencies | |
run: npm install -g firebase-tools | |
- name: Create service account key file | |
run: echo '${{ secrets.GSA_KEY }}' > "$HOME"/gsakey.json | |
- name: Deploy to Firebase Hosting | |
run: export GOOGLE_APPLICATION_CREDENTIALS="$HOME"/gsakey.json && firebase deploy --only hosting |