32 lines
831 B
YAML
32 lines
831 B
YAML
name: seata.io deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
#This schedule only takes effect in the default branch
|
|
schedule:
|
|
- cron: '0 */12 * * *'
|
|
|
|
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/ schema/ saga_designer/ deploy-dist/ && mv .htaccess *.html *.txt *.xml deploy-dist/
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v2.8.0
|
|
env:
|
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
PUBLISH_BRANCH: master
|
|
PUBLISH_DIR: ./deploy-dist
|
|
with:
|
|
keepFiles: true
|