Skip to content

Commit 3572d9f

Browse files
committed
chore: update workflows config.
1 parent c816a0a commit 3572d9f

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,44 +13,43 @@ jobs:
1313
with:
1414
node-version: 14
1515

16-
- name: Generate Changelog
17-
id: changelog
18-
uses: jaywcjlove/[email protected]
19-
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
21-
filter-author: (小弟调调™|Renovate Bot)
22-
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
16+
- run: npm install
17+
- run: npm run build
18+
- run: npm run dash
19+
- run: rm -rf .deploy/linux-command.docset
2320

2421
- name: Generate Contributors Images
2522
uses: jaywcjlove/github-action-contributors@main
2623
with:
2724
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
28-
output: CONTRIBUTORS.svg
25+
output: .deploy/CONTRIBUTORS.svg
2926
avatarSize: 42
3027

31-
- run: npm install
32-
- run: npm run build
33-
- run: npm run dash
34-
- run: rm -rf .deploy/linux-command.docset
35-
- run: cp -rp CONTRIBUTORS.svg .deploy/
28+
- name: Create Tag
29+
id: create_tag
30+
uses: jaywcjlove/[email protected]
31+
with:
32+
package-path: ./package.json
3633

37-
- run: npm install @jsdevtools/npm-publish -g
38-
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
34+
- name: get tag version
35+
id: tag_version
36+
uses: jaywcjlove/[email protected]
3937

4038
- name: Deploy
4139
uses: peaceiris/actions-gh-pages@v3
4240
with:
41+
commit_message: '[${{steps.tag_version.outputs.tag}}] ${{ github.event.head_commit.message }}'
4342
github_token: ${{ secrets.GITHUB_TOKEN }}
4443
publish_dir: ./.deploy
4544
user_name: github-actions[bot]
4645
user_email: github-actions[bot]@users.noreply.github.com
47-
48-
- name: Create Tag
49-
id: create_tag
50-
uses: jaywcjlove/create-tag-action@v1.3.5
46+
47+
- name: Generate Changelog
48+
id: changelog
49+
uses: jaywcjlove/changelog-generator@v1.5.0
5150
with:
52-
token: ${{ secrets.GITHUB_TOKEN }}
53-
package-path: ./package.json
51+
filter-author: (小弟调调™)
52+
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
5453

5554
- name: Create Release
5655
uses: ncipollo/release-action@v1
@@ -68,4 +67,11 @@ jobs:
6867
6968
${{ steps.changelog.outputs.compareurl }}
7069
71-
${{ steps.changelog.outputs.changelog }}
70+
${{ steps.changelog.outputs.changelog }}
71+
72+
73+
Document uiw@${{ steps.changelog.outputs.tag }}:
74+
https://raw.githack.com/jaywcjlove/linux-command/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
75+
76+
- run: npm install @jsdevtools/npm-publish -g
77+
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json

0 commit comments

Comments
 (0)