Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Sep 30, 2022
1 parent b3af50e commit dbc7313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# This is a basic workflow to help you get started with Actions

name: Doc

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
Expand All @@ -14,15 +12,12 @@ on:
- master
paths:
- 'docs/**'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest


# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -33,13 +28,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '16.x'
# Runs a single command using the runners shell
- name: build
run: |
npm install
npm run docs:build
cd docs-dist
git init
git add -A
git commit -m 'update docs'
git push -f [email protected]:jenkinsci/dingtalk-plugin.git master:gh-pages
npm run docs:release
3 changes: 3 additions & 0 deletions bin/docs-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# 确保脚本抛出遇到的错误
set -e

# 更新依赖
npm install

# 生成静态文件
npm run docs:build

Expand Down

0 comments on commit dbc7313

Please sign in to comment.