File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 1- name : Build & Deploy
1+ name : CI
22on :
33 push :
44 branches :
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
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
6370 ${{ steps.changelog.outputs.compareurl }}
6471
6572 ${{ steps.changelog.outputs.changelog }}
66-
You can’t perform that action at this time.
0 commit comments