File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 16
16
- run : npm install
17
17
- run : node scripts/build.mjs
18
18
19
+ - name : Create Tag
20
+ id : create_tag
21
+ uses :
jaywcjlove/[email protected]
22
+ with :
23
+ package-path : package.json
24
+
25
+ - name : get tag version
26
+ id : tag_version
27
+ uses :
jaywcjlove/[email protected]
28
+
19
29
- name : Deploy
20
30
uses : peaceiris/actions-gh-pages@v3
21
31
with :
22
32
commit_message : ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
23
33
github_token : ${{ secrets.GITHUB_TOKEN }}
24
- publish_dir : ./build
34
+ publish_dir : ./build
35
+
36
+ - name : Generate Changelog
37
+ id : changelog
38
+ uses :
jaywcjlove/[email protected]
39
+ with :
40
+ head-ref : ${{steps.create_tag.outputs.version}}
41
+ filter-author : (小弟调调™|Renovate Bot)
42
+ filter : ' [R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
43
+
44
+ - name : Create Release
45
+ uses : ncipollo/release-action@v1
46
+ if : steps.create_tag.outputs.successful
47
+ with :
48
+ name : ${{ steps.create_tag.outputs.version }}
49
+ tag : ${{ steps.create_tag.outputs.version }}
50
+ token : ${{ secrets.GITHUB_TOKEN }}
51
+ body : |
52
+ Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/swiftui-example/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
53
+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
54
+
55
+ ${{ steps.changelog.outputs.changelog }}
You can’t perform that action at this time.
0 commit comments