Skip to content

Commit

Permalink
chore: update workflows config. (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 24, 2023
1 parent a00bd77 commit dfedd5c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
npm install
npm run dash
cp CONTRIBUTORS.svg .deploy
rm -rf .deploy/linux-command.docset
- name: Create Tag
id: create_tag
Expand All @@ -60,15 +59,6 @@ jobs:
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
- 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
id: changelog
uses: jaywcjlove/changelog-generator@main
Expand Down Expand Up @@ -122,6 +112,17 @@ jobs:
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
continue-on-error: true
name: 📦 linux-command publish to NPM
Expand Down

0 comments on commit dfedd5c

Please sign in to comment.