Update firebase.yml
This commit is contained in:
parent
1238547381
commit
d1be334a80
47
.github/workflows/firebase.yml
vendored
47
.github/workflows/firebase.yml
vendored
@ -1,21 +1,38 @@
|
||||
name: Deploy to Firebase Hosting
|
||||
|
||||
on: [push]
|
||||
name: Firebase Hosting
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
Firebase:
|
||||
name: Firebase
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@master
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 10.x
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Install Dependencies
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
- name: Deploy to Firebase Hosting
|
||||
run: |
|
||||
npm run deploy --token=${{ secrets.FIREBASE_TOKEN }}
|
||||
- name: Archive Production Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
deploy:
|
||||
name: Deploy
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@master
|
||||
- name: Download Artifact
|
||||
uses: actions/download-artifact@master
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
- name: Deploy to Firebase
|
||||
uses: w9jds/firebase-action@master
|
||||
with:
|
||||
args: deploy --only hosting:yudemoe
|
||||
env:
|
||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
Loading…
Reference in New Issue
Block a user