changed from hexo to custom react stuff #1
1 changed files with 37 additions and 14 deletions
51
.github/workflows/firebase-hosting-merge.yml
vendored
51
.github/workflows/firebase-hosting-merge.yml
vendored
|
@ -4,23 +4,46 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
jobs:
|
jobs:
|
||||||
build_and_deploy:
|
build:
|
||||||
name: Build and Deploy
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
- name: Install dependencies and build site
|
- name: Install Dependencies and Build
|
||||||
run: cd source && yarn install && yarn build
|
run: cd source && yarn install && yarn build
|
||||||
- name: Apply target
|
- name: Archive Production Artifact
|
||||||
uses: w9jds/firebase-action@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
args: target:apply hosting dev developomp-site
|
name: build
|
||||||
env:
|
path: build
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
deploy:
|
||||||
- name: Deploy to Firebase
|
name: Deploy
|
||||||
uses: w9jds/firebase-action@master
|
needs: build
|
||||||
with:
|
runs-on: ubuntu-latest
|
||||||
args: deploy --only hosting
|
steps:
|
||||||
env:
|
- name: Checkout Repo
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
uses: actions/checkout@master
|
||||||
|
- name: Download Artifact
|
||||||
|
uses: actions/download-artifact@master
|
||||||
|
with:
|
||||||
|
name: build
|
||||||
|
path: build
|
||||||
|
- name: Set target
|
||||||
|
uses: w9jds/firebase-action@master
|
||||||
|
with:
|
||||||
|
args: use developomp-site
|
||||||
|
env:
|
||||||
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
|
- name: Apply target
|
||||||
|
uses: w9jds/firebase-action@master
|
||||||
|
with:
|
||||||
|
args: target:apply hosting dev developomp-site
|
||||||
|
env:
|
||||||
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
|
- name: Deploy to Firebase
|
||||||
|
uses: w9jds/firebase-action@master
|
||||||
|
with:
|
||||||
|
args: deploy --only hosting:dev
|
||||||
|
env:
|
||||||
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue