Skip to content

Commit 315570b

Browse files
committed
chore: update ci.yml
1 parent 3f907ce commit 315570b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@master
1313

14+
- name: Look Changelog
15+
uses: jaywcjlove/[email protected]
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
head-ref: ${{steps.create_tag.outputs.version}}
19+
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
20+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
21+
1422
- name: Setup Node
1523
uses: actions/setup-node@v1
1624
with:
@@ -33,3 +41,34 @@ jobs:
3341
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
3442
PUBLISH_BRANCH: gh-pages
3543
PUBLISH_DIR: ./build
44+
45+
- name: Create Tag
46+
id: create_tag
47+
uses: jaywcjlove/[email protected]
48+
with:
49+
token: ${{ secrets.GITHUB_TOKEN }}
50+
package-path: ./package.json
51+
52+
- name: Generate Changelog
53+
id: changelog
54+
uses: jaywcjlove/[email protected]
55+
with:
56+
token: ${{ secrets.GITHUB_TOKEN }}
57+
head-ref: ${{steps.create_tag.outputs.version}}
58+
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
59+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
60+
61+
- name: Create Release
62+
id: create_release
63+
uses: actions/create-release@latest
64+
if: steps.create_tag.outputs.successful
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
with:
68+
tag_name: ${{ steps.create_tag.outputs.version }}
69+
release_name: ${{ steps.create_tag.outputs.version }}
70+
body: |
71+
${{ steps.changelog.outputs.compareurl }}
72+
${{ steps.changelog.outputs.changelog }}
73+
draft: false
74+
prerelease: false

0 commit comments

Comments
 (0)