|
|
|
@ -47,22 +47,26 @@ jobs:
|
|
|
|
|
output: build/CONTRIBUTORS.svg
|
|
|
|
|
avatarSize: 42
|
|
|
|
|
|
|
|
|
|
- name: Create Tag
|
|
|
|
|
id: create_tag
|
|
|
|
|
uses: jaywcjlove/create-tag-action@v1.3.6
|
|
|
|
|
with:
|
|
|
|
|
package-path: ./package.json
|
|
|
|
|
|
|
|
|
|
- name: get tag version
|
|
|
|
|
id: tag_version
|
|
|
|
|
uses: jaywcjlove/changelog-generator@v1.5.3
|
|
|
|
|
|
|
|
|
|
- name: Build and Deploy
|
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
|
with:
|
|
|
|
|
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
|
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
|
|
|
publish_dir: ./build
|
|
|
|
|
|
|
|
|
|
- name: Is a tag created auto?
|
|
|
|
|
id: create_tag
|
|
|
|
|
uses: jaywcjlove/create-tag-action@v1.3.5
|
|
|
|
|
with:
|
|
|
|
|
package-path: ./package.json
|
|
|
|
|
|
|
|
|
|
- name: Generate Changelog
|
|
|
|
|
id: changelog
|
|
|
|
|
uses: jaywcjlove/changelog-generator@v1.4.8
|
|
|
|
|
uses: jaywcjlove/changelog-generator@v1.5.3
|
|
|
|
|
with:
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
|
|
|
|
@ -83,9 +87,11 @@ jobs:
|
|
|
|
|
body: |
|
|
|
|
|
[![](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)
|
|
|
|
|
|
|
|
|
|
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/hotkeys/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
|
|
|
|
|
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm i hotkeys-js@${{steps.changelog.outputs.version}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
${{ steps.changelog.outputs.compareurl }}
|
|
|
|
|
${{ steps.changelog.outputs.changelog }}
|
|
|
|
|