changed from hexo to custom react stuff #1
1 changed files with 17 additions and 12 deletions
29
.github/workflows/firebase-hosting-merge.yml
vendored
29
.github/workflows/firebase-hosting-merge.yml
vendored
|
@ -1,6 +1,3 @@
|
|||
# This file was auto-generated by the Firebase CLI
|
||||
# https://github.com/firebase/firebase-tools
|
||||
|
||||
name: Deploy to Firebase Hosting on merge
|
||||
on:
|
||||
push:
|
||||
|
@ -8,15 +5,23 @@ on:
|
|||
- dev
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
name: Build and Deploy
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: cd source && yarn install && yarn build # install dependencies and build site
|
||||
- run: /usr/local/bin/npx firebase-tools target:apply hosting dev developomp-site # Configure target
|
||||
- uses: FirebaseExtended/action-hosting-deploy@v0
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@master
|
||||
- name: Install dependencies and build site
|
||||
run: cd source && yarn install && yarn build
|
||||
- name: Apply target
|
||||
uses: w9jds/firebase-action@master
|
||||
with:
|
||||
repoToken: "${{ secrets.GITHUB_TOKEN }}"
|
||||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEVELOPOMP_SITE }}"
|
||||
channelId: live
|
||||
projectId: developomp-site
|
||||
target: dev
|
||||
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
|
||||
env:
|
||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue