chore: update workflows config.
This commit is contained in:
parent
c816a0a2eb
commit
3572d9f2c5
|
|
@ -13,44 +13,43 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 14
|
||||||
|
|
||||||
- name: Generate Changelog
|
- run: npm install
|
||||||
id: changelog
|
- run: npm run build
|
||||||
uses: jaywcjlove/changelog-generator@v1.4.8
|
- run: npm run dash
|
||||||
with:
|
- run: rm -rf .deploy/linux-command.docset
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
filter-author: (小弟调调™|Renovate Bot)
|
|
||||||
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
|
|
||||||
|
|
||||||
- name: Generate Contributors Images
|
- name: Generate Contributors Images
|
||||||
uses: jaywcjlove/github-action-contributors@main
|
uses: jaywcjlove/github-action-contributors@main
|
||||||
with:
|
with:
|
||||||
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
|
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
|
||||||
output: CONTRIBUTORS.svg
|
output: .deploy/CONTRIBUTORS.svg
|
||||||
avatarSize: 42
|
avatarSize: 42
|
||||||
|
|
||||||
- run: npm install
|
- name: Create Tag
|
||||||
- run: npm run build
|
id: create_tag
|
||||||
- run: npm run dash
|
uses: jaywcjlove/create-tag-action@v1.3.6
|
||||||
- run: rm -rf .deploy/linux-command.docset
|
with:
|
||||||
- run: cp -rp CONTRIBUTORS.svg .deploy/
|
package-path: ./package.json
|
||||||
|
|
||||||
- run: npm install @jsdevtools/npm-publish -g
|
- name: get tag version
|
||||||
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
|
id: tag_version
|
||||||
|
uses: jaywcjlove/changelog-generator@v1.5.0
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
|
commit_message: '[${{steps.tag_version.outputs.tag}}] ${{ github.event.head_commit.message }}'
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./.deploy
|
publish_dir: ./.deploy
|
||||||
user_name: github-actions[bot]
|
user_name: github-actions[bot]
|
||||||
user_email: github-actions[bot]@users.noreply.github.com
|
user_email: github-actions[bot]@users.noreply.github.com
|
||||||
|
|
||||||
- name: Create Tag
|
- name: Generate Changelog
|
||||||
id: create_tag
|
id: changelog
|
||||||
uses: jaywcjlove/create-tag-action@v1.3.5
|
uses: jaywcjlove/changelog-generator@v1.5.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
filter-author: (小弟调调™)
|
||||||
package-path: ./package.json
|
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
|
|
@ -68,4 +67,11 @@ jobs:
|
||||||
|
|
||||||
${{ steps.changelog.outputs.compareurl }}
|
${{ 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
|
||||||
Loading…
Reference in New Issue