6
6
7
7
jobs :
8
8
build :
9
- runs-on : ubuntu-18.04
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ contents : write
12
+ id-token : write
10
13
steps :
11
- - uses : actions/checkout@v3
12
- - uses : actions/setup-node@v3
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-node@v4
13
16
with :
14
- node-version : 14
17
+ node-version : 20
18
+ registry-url : ' https://registry.npmjs.org'
15
19
16
20
- run : npm install
17
21
- run : npm run build
@@ -25,16 +29,16 @@ jobs:
25
29
26
30
- name : Create Tag
27
31
id : create_tag
28
- uses : jaywcjlove/create-tag-action@v1.3.6
32
+ uses : jaywcjlove/create-tag-action@main
29
33
with :
30
34
package-path : ./package.json
31
35
32
36
- name : get tag version
33
37
id : tag_version
34
- uses : jaywcjlove/changelog-generator@v1.5.3
38
+ uses : jaywcjlove/changelog-generator@main
35
39
36
40
- name : Deploy Website
37
- uses : peaceiris/actions-gh-pages@v3
41
+ uses : peaceiris/actions-gh-pages@v4
38
42
with :
39
43
user_name : ' github-actions[bot]'
40
44
user_email : ' github-actions[bot]@users.noreply.github.com'
@@ -44,19 +48,17 @@ jobs:
44
48
45
49
- name : Generate Changelog
46
50
id : changelog
47
- uses : jaywcjlove/changelog-generator@v1.5.3
51
+ uses : jaywcjlove/changelog-generator@main
48
52
with :
49
53
token : ${{ secrets.GITHUB_TOKEN }}
50
54
filter-author : (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
51
55
filter : (^[\s]+?[R|r]elease)|(^[R|r]elease)
52
56
53
- - name : Create Release
54
- uses : ncipollo/release-action@v1
55
- if : steps.create_tag.outputs.successful
57
+ - name : ♻️ Create Release
58
+ uses : jaywcjlove/create-tag-action@main
56
59
with :
57
- token : ${{ secrets.GITHUB_TOKEN }}
58
- name : ${{ steps.create_tag.outputs.version }}
59
- tag : ${{ steps.create_tag.outputs.version }}
60
+ package-path : ./package.json
61
+ release : true
60
62
body : |
61
63
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/vim-web/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
62
64
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
0 commit comments