From ca28c1873d79b018c665607d400cbd9e6d524e71 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 1 Mar 2022 00:48:32 +0800 Subject: [PATCH] chore: update workflows config. --- .github/workflows/ci.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index feafbb5cc..3a6cef788 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Build & Deploy +name: CI on: push: branches: @@ -41,6 +41,29 @@ jobs: - run: npm run build - run: npm run doc - run: npm run coverage + - run: npm run bundle + - run: npm run bundle:min + + - run: cp -rp packages/baidu-map/dist/* website/build + - run: cp -rp coverage website/build + + - name: Create Coverage Badges + uses: jaywcjlove/coverage-badges-cli@main + with: + output: build/badges.svg + + - name: Generate Contributors Images + uses: jaywcjlove/github-action-contributors@main + with: + filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\]) + output: build/CONTRIBUTORS.svg + avatarSize: 42 + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./website/build - uses: JS-DevTools/npm-publish@v1 with: @@ -198,12 +221,6 @@ jobs: head-ref: ${{steps.create_tag.outputs.version}} filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}' - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./website/build - - name: Create Release uses: ncipollo/release-action@v1 if: steps.create_tag.outputs.successful