v2.14.5 #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: doc | |
# event type(此处我们选择 push,且仅当 push 到 master 分支触发) | |
on: | |
push: | |
branches: | |
- master | |
# 任务列表 | |
jobs: | |
# 任务名称 | |
release: | |
# 在何种平台执行,可选 windows-latest/ubuntu-latest/macOS-latest 等 | |
runs-on: ubuntu-latest | |
# 为了加速构建,我们使用同一个包含 Node.js 的容器运行所有命令 | |
container: | |
image: thonatos/github-actions-nodejs | |
# 这里定义了任务运行过程中的各个步骤 | |
steps: | |
# 环境 | |
- run: | | |
npm -v | |
node -v | |
yarn -v | |
git config --global user.email "gmfe4code@163.com" | |
git config --global user.name "gmfe4code" | |
- run: | | |
pwd | |
git clone https://github.com/gmfe/gm-common.git | |
- run: | | |
cd gm-common | |
yarn install --ignore-engines | |
npx lerna bootstrap | |
npm run build | |
rm -rf .github && rm -rf .storybook && rm -rf packages | |
git add --all | |
git commit -m 'build docs' | |
ls | |
git push 'https://gmfe4code:${{secrets.PASSWORD}}@github.com/gmfe/gm-common-doc.git' HEAD:main -f |