Skip to content

Commit b82a3e4

Browse files
committed
ci: update workflows config.
1 parent 166f287 commit b82a3e4

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

.github/FUNDING.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# These are supported funding model platforms
22

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
custom: https://jaywcjlove.github.io/sponsor.html
3+
# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
# patreon: # Replace with a single Patreon username
5+
# open_collective: # Replace with a single Open Collective username
6+
# ko_fi: # Replace with a single Ko-fi username
7+
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
custom: https://wangchujiang.com/#/sponsor

.github/workflows/ci.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
id-token: write
1013
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1316
with:
14-
node-version: 14
17+
node-version: 20
18+
registry-url: 'https://registry.npmjs.org'
1519

1620
- run: npm install
1721
- run: npm run build
@@ -25,16 +29,16 @@ jobs:
2529

2630
- name: Create Tag
2731
id: create_tag
28-
uses: jaywcjlove/create-tag-action@v1.3.6
32+
uses: jaywcjlove/create-tag-action@main
2933
with:
3034
package-path: ./package.json
3135

3236
- name: get tag version
3337
id: tag_version
34-
uses: jaywcjlove/changelog-generator@v1.5.3
38+
uses: jaywcjlove/changelog-generator@main
3539

3640
- name: Deploy Website
37-
uses: peaceiris/actions-gh-pages@v3
41+
uses: peaceiris/actions-gh-pages@v4
3842
with:
3943
user_name: 'github-actions[bot]'
4044
user_email: 'github-actions[bot]@users.noreply.github.com'
@@ -44,19 +48,17 @@ jobs:
4448

4549
- name: Generate Changelog
4650
id: changelog
47-
uses: jaywcjlove/changelog-generator@v1.5.3
51+
uses: jaywcjlove/changelog-generator@main
4852
with:
4953
token: ${{ secrets.GITHUB_TOKEN }}
5054
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
5155
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
5256

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
5659
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
6062
body: |
6163
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/vim-web/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
6264
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}

0 commit comments

Comments
 (0)