yude-moe/.github/workflows/firebase.yml

28 lines
604 B
YAML
Raw Normal View History

2020-09-05 08:46:34 +09:00
name: Firebase Hosting
on:
push:
branches:
- master
2020-09-05 08:33:25 +09:00
jobs:
2020-09-05 08:46:34 +09:00
build:
name: Build
2020-09-05 08:33:25 +09:00
runs-on: ubuntu-latest
steps:
2020-09-05 08:46:34 +09:00
- name: Checkout Repo
2020-09-05 08:33:25 +09:00
uses: actions/checkout@master
2020-09-05 08:46:34 +09:00
- name: Install Dependencies
2020-09-05 08:33:25 +09:00
run: npm install
2020-09-05 08:46:34 +09:00
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
2020-09-05 09:02:51 +09:00
args: deploy --only hosting
2020-09-05 08:46:34 +09:00
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}