From dbc73137d2609da3d4e5b7894de81813e642d3e1 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 30 Sep 2022 13:44:25 +0800 Subject: [PATCH] ci: update --- .github/workflows/doc.yml | 14 +------------- bin/docs-release.sh | 3 +++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 982cbb6..0e8f380 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -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: @@ -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 @@ -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 git@github.com:jenkinsci/dingtalk-plugin.git master:gh-pages + npm run docs:release diff --git a/bin/docs-release.sh b/bin/docs-release.sh index e852ad4..7525fe9 100644 --- a/bin/docs-release.sh +++ b/bin/docs-release.sh @@ -3,6 +3,9 @@ # 确保脚本抛出遇到的错误 set -e +# 更新依赖 +npm install + # 生成静态文件 npm run docs:build