Skip to content

Commit 020420a

Browse files
committed
chore: update workflows config.
1 parent 52f2de8 commit 020420a

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,40 @@ jobs:
1616
- run: npm install
1717
- run: node scripts/build.mjs
1818

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+
1929
- name: Deploy
2030
uses: peaceiris/actions-gh-pages@v3
2131
with:
2232
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
2333
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 }}

0 commit comments

Comments
 (0)