Skip to content

Commit a66cd02

Browse files
committed
chore: update workflows config.
1 parent 8805f45 commit a66cd02

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/ci.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,26 @@ jobs:
4747
output: build/CONTRIBUTORS.svg
4848
avatarSize: 42
4949

50+
- name: Create Tag
51+
id: create_tag
52+
uses: jaywcjlove/[email protected]
53+
with:
54+
package-path: ./package.json
55+
56+
- name: get tag version
57+
id: tag_version
58+
uses: jaywcjlove/[email protected]
59+
5060
- name: Build and Deploy
5161
uses: peaceiris/actions-gh-pages@v3
5262
with:
63+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
5364
github_token: ${{ secrets.GITHUB_TOKEN }}
54-
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
5565
publish_dir: ./build
5666

57-
- name: Is a tag created auto?
58-
id: create_tag
59-
uses: jaywcjlove/[email protected]
60-
with:
61-
package-path: ./package.json
62-
6367
- name: Generate Changelog
6468
id: changelog
65-
uses: jaywcjlove/changelog-generator@v1.4.8
69+
uses: jaywcjlove/changelog-generator@v1.5.3
6670
with:
6771
token: ${{ secrets.GITHUB_TOKEN }}
6872
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
@@ -83,9 +87,11 @@ jobs:
8387
body: |
8488
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/hotkeys-js@${{steps.changelog.outputs.version}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/hotkeys-js)](https://bundlephobia.com/result?p=hotkeys-js@${{steps.changelog.outputs.version}}) [![npm version](https://img.shields.io/npm/v/hotkeys-js.svg)](https://www.npmjs.com/package/hotkeys-js)
8589
90+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/hotkeys/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
91+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
92+
8693
```bash
8794
npm i hotkeys-js@${{steps.changelog.outputs.version}}
8895
```
8996
90-
${{ steps.changelog.outputs.compareurl }}
9197
${{ steps.changelog.outputs.changelog }}

0 commit comments

Comments
 (0)