You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
919 B
37 lines
919 B
name: Luckysheet demo github pages deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout # 检查项目
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Node.js # Nodejs版本
|
|
uses: actions/setup-node@master
|
|
with:
|
|
node-version: 12.13.0
|
|
|
|
- name: Install dependencies & Generate static files # 安装依赖打包demo和文档
|
|
run: |
|
|
node -v
|
|
npm install
|
|
npm install gulp -g
|
|
npm run build
|
|
|
|
- name: Deploy LuckysheetDemo to GitHub Pages # 发布demo 到github pages
|
|
if: success()
|
|
uses: crazy-max/ghaction-github-pages@v2
|
|
with:
|
|
repo: mengshukeji/LuckysheetDemo
|
|
target_branch: gh-pages
|
|
build_dir: dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
|