Skip to content

Commit dfedd5c

Browse files
committed
chore: update workflows config. (#460)
1 parent a00bd77 commit dfedd5c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/ci.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444
npm install
4545
npm run dash
4646
cp CONTRIBUTORS.svg .deploy
47-
rm -rf .deploy/linux-command.docset
4847
4948
- name: Create Tag
5049
id: create_tag
@@ -60,15 +59,6 @@ jobs:
6059
run: |
6160
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
6261
63-
- name: Deploy
64-
uses: peaceiris/actions-gh-pages@v3
65-
with:
66-
commit_message: '[${{steps.tag_version.outputs.tag}}] ${{ github.event.head_commit.message }}'
67-
github_token: ${{ secrets.GITHUB_TOKEN }}
68-
publish_dir: ./.deploy
69-
user_name: github-actions[bot]
70-
user_email: github-actions[bot]@users.noreply.github.com
71-
7262
- name: Generate Changelog
7363
id: changelog
7464
uses: jaywcjlove/changelog-generator@main
@@ -122,6 +112,17 @@ jobs:
122112
http://localhost:9665/
123113
```
124114
115+
- run: rm -rf .deploy/linux-command.docset
116+
117+
- name: Deploy
118+
uses: peaceiris/actions-gh-pages@v3
119+
with:
120+
commit_message: '[${{steps.tag_version.outputs.tag}}] ${{ github.event.head_commit.message }}'
121+
github_token: ${{ secrets.GITHUB_TOKEN }}
122+
publish_dir: ./.deploy
123+
user_name: github-actions[bot]
124+
user_email: github-actions[bot]@users.noreply.github.com
125+
125126
- run: npm publish
126127
continue-on-error: true
127128
name: 📦 linux-command publish to NPM

0 commit comments

Comments
 (0)