Skip to content

Merge pull request #302 from TABASCOatw/patch-1 #561

Merge pull request #302 from TABASCOatw/patch-1

Merge pull request #302 from TABASCOatw/patch-1 #561

name: GitHub Actions Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
# 替换定制化js文件,生成静态文件
- name: Build
run: cd website && npm install && npm run build:all
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
ACCESS_TOKEN: ${{ secrets.BUILD_DEPLOY_ACTION }}
BRANCH: gh-pages
FOLDER: website/build