changed from hexo to custom react stuff #1
1 changed files with 6 additions and 8 deletions
14
.github/workflows/firebase-hosting-merge.yml
vendored
14
.github/workflows/firebase-hosting-merge.yml
vendored
|
@ -2,7 +2,7 @@ name: Deploy to Firebase Hosting on merge
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
@ -10,6 +10,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
- uses: actions/cache@main
|
||||||
|
with:
|
||||||
|
path: "**/node_modules"
|
||||||
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||||
- name: Install Dependencies and Build
|
- name: Install Dependencies and Build
|
||||||
run: cd source && yarn install && yarn build
|
run: cd source && yarn install && yarn build
|
||||||
- name: Archive Production Artifact
|
- name: Archive Production Artifact
|
||||||
|
@ -35,15 +39,9 @@ jobs:
|
||||||
args: use developomp-site
|
args: use developomp-site
|
||||||
env:
|
env:
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
- name: Apply target
|
|
||||||
uses: w9jds/firebase-action@master
|
|
||||||
with:
|
|
||||||
args: target:apply hosting test developomp-site-test
|
|
||||||
env:
|
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
|
||||||
- name: Deploy to Firebase
|
- name: Deploy to Firebase
|
||||||
uses: w9jds/firebase-action@master
|
uses: w9jds/firebase-action@master
|
||||||
with:
|
with:
|
||||||
args: deploy --only hosting:test
|
args: deploy --only hosting
|
||||||
env:
|
env:
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue