Last active
December 11, 2020 15:10
-
-
Save oxo-yuta/3c55d81485c59b65f4f607c801091d7c to your computer and use it in GitHub Desktop.
yml for Github Actions to deploy Nuxt project to Firebase
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 | |
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