fixed formatting
This commit is contained in:
parent
5ef5279b3b
commit
b9f7ff77ea
1 changed files with 54 additions and 52 deletions
106
.github/workflows/firebase-hosting-deploy.yml
vendored
106
.github/workflows/firebase-hosting-deploy.yml
vendored
|
@ -1,55 +1,57 @@
|
||||||
name: Deploy to Firebase Hosting on merge
|
name: Deploy to Firebase Hosting on merge
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
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: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: yarn
|
cache: yarn
|
||||||
cache-dependency-path: source/yarn.lock
|
cache-dependency-path: source/yarn.lock
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd source && yarn build
|
run: cd source && yarn build
|
||||||
- name: Archive Production Artifact
|
- name: Archive Production Artifact
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: build
|
name: build
|
||||||
path: source/build
|
path: source/build
|
||||||
deploy:
|
|
||||||
name: Deploy
|
deploy:
|
||||||
needs: build
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
needs: build
|
||||||
steps:
|
runs-on: ubuntu-latest
|
||||||
- name: Checkout Repo
|
steps:
|
||||||
uses: actions/checkout@master
|
- name: Checkout Repo
|
||||||
- name: Download Artifact
|
uses: actions/checkout@master
|
||||||
uses: actions/download-artifact@master
|
- name: Download Artifact
|
||||||
with:
|
uses: actions/download-artifact@master
|
||||||
name: build
|
with:
|
||||||
path: source/build
|
name: build
|
||||||
- name: Set target
|
path: source/build
|
||||||
uses: w9jds/firebase-action@master
|
- name: Set target
|
||||||
with:
|
uses: w9jds/firebase-action@master
|
||||||
args: use developomp-site
|
with:
|
||||||
env:
|
args: use developomp-site
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
env:
|
||||||
- name: Apply target
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
uses: w9jds/firebase-action@master
|
- name: Apply target
|
||||||
with:
|
uses: w9jds/firebase-action@master
|
||||||
args: target:apply hosting stable developomp-site
|
with:
|
||||||
env:
|
args: target:apply hosting stable developomp-site
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
env:
|
||||||
- name: Deploy to Firebase
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
uses: w9jds/firebase-action@master
|
- name: Deploy to Firebase
|
||||||
with:
|
uses: w9jds/firebase-action@master
|
||||||
args: deploy --only hosting:stable
|
with:
|
||||||
env:
|
args: deploy --only hosting:stable
|
||||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
env:
|
||||||
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue