Skip to content

Commit d3a28c2

Browse files
committed
chore: update wrokflows config.
1 parent 075d362 commit d3a28c2

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Deploy
1+
name: CI
22
on:
33
push:
44
branches:
@@ -17,9 +17,22 @@ jobs:
1717
- run: npm run build
1818
- run: npm run doc
1919
- run: npm run test:coverage
20-
- run: npm i coverage-badges-cli -g
21-
- run: coverage-badges
20+
- run: npm run bundle
21+
- run: npm run bundle:min
22+
23+
- name: Create Coverage Badges
24+
uses: jaywcjlove/coverage-badges-cli@main
25+
with:
26+
output: build/badges.svg
27+
2228
- run: cp -rp coverage build
29+
- run: cp -rp dist/* build
30+
31+
- name: Deploy
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./build
2336

2437
- run: npm install @jsdevtools/npm-publish -g
2538
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
@@ -40,12 +53,6 @@ jobs:
4053
filter-author: (小弟调调™|Renovate Bot)
4154
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
4255

43-
- name: Deploy
44-
uses: peaceiris/actions-gh-pages@v3
45-
with:
46-
github_token: ${{ secrets.GITHUB_TOKEN }}
47-
publish_dir: ./build
48-
4956
- name: Create Release
5057
uses: ncipollo/release-action@v1
5158
if: steps.create_tag.outputs.successful
@@ -63,4 +70,3 @@ jobs:
6370
${{ steps.changelog.outputs.compareurl }}
6471
6572
${{ steps.changelog.outputs.changelog }}
66-

0 commit comments

Comments
 (0)