29 lines
676 B
YAML
29 lines
676 B
YAML
name: seata.io deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
|
|
jobs:
|
|
Build-Deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Use Node.js 10.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10.x
|
|
- name: Build
|
|
run: |
|
|
npm install && npm run build && mkdir deploy-dist && cp -R zh-cn/ en-us/ build/ img/ md_json/ site_config/ deploy-dist/ && mv *.html deploy-dist/
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v2.4.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PUBLISH_BRANCH: master
|
|
PUBLISH_DIR: ./deploy-dist
|
|
with:
|
|
keepFiles: true
|