chore: update workflows config. (#460)
This commit is contained in:
parent
a00bd774e0
commit
dfedd5c605
|
|
@ -44,7 +44,6 @@ jobs:
|
||||||
npm install
|
npm install
|
||||||
npm run dash
|
npm run dash
|
||||||
cp CONTRIBUTORS.svg .deploy
|
cp CONTRIBUTORS.svg .deploy
|
||||||
rm -rf .deploy/linux-command.docset
|
|
||||||
|
|
||||||
- name: Create Tag
|
- name: Create Tag
|
||||||
id: create_tag
|
id: create_tag
|
||||||
|
|
@ -60,15 +59,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "<entry><version>${{steps.create_tag.outputs.versionNumber}}</version><url>https://jaywcjlove.github.io/linux-command/linux-command.docset.tgz</url></entry>" > .deploy/linux-command-docset.xml
|
echo "<entry><version>${{steps.create_tag.outputs.versionNumber}}</version><url>https://jaywcjlove.github.io/linux-command/linux-command.docset.tgz</url></entry>" > .deploy/linux-command-docset.xml
|
||||||
|
|
||||||
- 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: Generate Changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: jaywcjlove/changelog-generator@main
|
uses: jaywcjlove/changelog-generator@main
|
||||||
|
|
@ -122,6 +112,17 @@ jobs:
|
||||||
http://localhost:9665/
|
http://localhost:9665/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- run: rm -rf .deploy/linux-command.docset
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
name: 📦 linux-command publish to NPM
|
name: 📦 linux-command publish to NPM
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue