1
- name : Build & Deploy
1
+ name : CI
2
2
on :
3
3
push :
4
4
branches :
@@ -12,28 +12,38 @@ jobs:
12
12
with :
13
13
node-version : 14
14
14
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
+
15
22
- run : npm install
16
23
- run : npm run build
17
24
- run : npm run doc
18
25
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
+
19
36
- name : Deploy
20
37
uses : peaceiris/actions-gh-pages@v3
21
38
with :
39
+ commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
22
40
github_token : ${{ secrets.GITHUB_TOKEN }}
23
41
publish_dir : ./build
24
42
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
-
32
43
- name : Generate Changelog
33
44
id : changelog
34
- uses : jaywcjlove/changelog-generator@v1.4.8
45
+ uses : jaywcjlove/changelog-generator@v1.5.0
35
46
with :
36
- token : ${{ secrets.GITHUB_TOKEN }}
37
47
head-ref : ${{steps.create_tag.outputs.version}}
38
48
filter-author : (小弟调调™|Renovate Bot|renovate-bot)
39
49
filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
@@ -48,11 +58,12 @@ jobs:
48
58
body : |
49
59
[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codesandbox@${{ steps.create_tag.outputs.versionNumber }}/file/README.md)
50
60
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
+
51
64
```bash
52
65
npm i @uiw/react-codesandbox@${{ steps.create_tag.outputs.versionNumber }}
53
66
```
54
-
55
- ${{ steps.changelog.outputs.compareurl }}
56
67
57
68
${{ steps.changelog.outputs.changelog }}
58
69
draft : false
0 commit comments