Skip to content

Commit e98b5ca

Browse files
committed
chore: update workflows config.
1 parent 46fba36 commit e98b5ca

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 12 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:
@@ -12,28 +12,38 @@ jobs:
1212
with:
1313
node-version: 14
1414

15+
- name: Generate Contributors Images
16+
uses: jaywcjlove/github-action-contributors@main
17+
with:
18+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
19+
output: build/CONTRIBUTORS.svg
20+
avatarSize: 42
21+
1522
- run: npm install
1623
- run: npm run build
1724
- run: npm run doc
1825

26+
- name: Is a tag created auto?
27+
id: create_tag
28+
uses: jaywcjlove/[email protected]
29+
with:
30+
package-path: ./package.json
31+
32+
- name: get tag version
33+
id: tag_version
34+
uses: jaywcjlove/[email protected]
35+
1936
- name: Deploy
2037
uses: peaceiris/actions-gh-pages@v3
2138
with:
39+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
2240
github_token: ${{ secrets.GITHUB_TOKEN }}
2341
publish_dir: ./build
2442

25-
- name: Is a tag created auto?
26-
id: create_tag
27-
uses: jaywcjlove/[email protected]
28-
with:
29-
token: ${{ secrets.GITHUB_TOKEN }}
30-
package-path: ./package.json
31-
3243
- name: Generate Changelog
3344
id: changelog
34-
uses: jaywcjlove/changelog-generator@v1.4.8
45+
uses: jaywcjlove/changelog-generator@v1.5.0
3546
with:
36-
token: ${{ secrets.GITHUB_TOKEN }}
3747
head-ref: ${{steps.create_tag.outputs.version}}
3848
filter-author: (小弟调调™|Renovate Bot|renovate-bot)
3949
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
@@ -48,11 +58,12 @@ jobs:
4858
body: |
4959
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codesandbox@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
5060
61+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-codesandbox/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
62+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
63+
5164
```bash
5265
npm i @uiw/react-codesandbox@${{ steps.create_tag.outputs.versionNumber }}
5366
```
54-
55-
${{ steps.changelog.outputs.compareurl }}
5667
5768
${{ steps.changelog.outputs.changelog }}
5869
draft: false

0 commit comments

Comments
 (0)