Skip to content

Instantly share code, notes, and snippets.

@oxo-yuta
Last active December 11, 2020 15:10
Show Gist options
  • Save oxo-yuta/3c55d81485c59b65f4f607c801091d7c to your computer and use it in GitHub Desktop.
Save oxo-yuta/3c55d81485c59b65f4f607c801091d7c to your computer and use it in GitHub Desktop.
yml for Github Actions to deploy Nuxt project to Firebase
name: Deploy to firebase
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, generate
run: |
yarn
yarn generate
- name: deploy to Firebase Hosting
uses: w9jds/firebase-action@master
with:
args: deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} # add Firebase Tooken as secret of your Github repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment