Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 28, 2022
1 parent c772610 commit ca28c18
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Deploy
name: CI
on:
push:
branches:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ca28c18

Please sign in to comment.