chore: update workflows config.

This commit is contained in:
jaywcjlove 2022-03-03 19:13:38 +08:00
parent c816a0a2eb
commit 3572d9f2c5
1 changed files with 28 additions and 22 deletions

View File

@ -13,44 +13,43 @@ jobs:
with:
node-version: 14
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.4.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-author: (小弟调调™|Renovate Bot)
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
- run: npm install
- run: npm run build
- run: npm run dash
- run: rm -rf .deploy/linux-command.docset
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: CONTRIBUTORS.svg
output: .deploy/CONTRIBUTORS.svg
avatarSize: 42
- run: npm install
- run: npm run build
- run: npm run dash
- run: rm -rf .deploy/linux-command.docset
- run: cp -rp CONTRIBUTORS.svg .deploy/
- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.6
with:
package-path: ./package.json
- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
- name: get tag version
id: tag_version
uses: jaywcjlove/changelog-generator@v1.5.0
- name: 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 }}
publish_dir: ./.deploy
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com
- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.5
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./package.json
filter-author: (小弟调调™)
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
- name: Create Release
uses: ncipollo/release-action@v1
@ -68,4 +67,11 @@ jobs:
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
${{ steps.changelog.outputs.changelog }}
Document uiw@${{ steps.changelog.outputs.tag }}:
https://raw.githack.com/jaywcjlove/linux-command/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json