blob: 9c77ceac5b28758ebf5521a3acd7a4589f6cb80f [file] [log] [blame]
name: Website deploy
on:
push:
branches:
- master
jobs:
Build-Deploy:
runs-on: ubuntu-18.04
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/ schema/ md_json/ deploy-dist/ && mv .htaccess *.html *.xml deploy-dist/
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: asf-site
PUBLISH_DIR: ./deploy-dist
with:
keepFiles: true