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 to Firebase Hosting (STG) | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
build-and-deploy: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version-file: ./.node-version | |
- name: Install dependencies | |
run: npm ci | |
- name: Build and Export | |
run: | | |
npm run build | |
npm run export | |
- name: Install firebase-tools | |
run: npm install -g firebase-tools | |
- name: Deploy to Staging | |
run: | | |
firebase use pokemon-shuzokuchi-quiz | |
firebase deploy --only hosting:staging |