Skip to content

Commit cae8fae

Browse files
committed
[增加]1. 增加Docfx 生成
1 parent cb98190 commit cae8fae

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/docs-publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ jobs:
2525
run: |
2626
dotnet tool install -g docfx
2727
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
28+
- name: Directory Switch
29+
run: cd docs
30+
31+
- name: look for docs
32+
run: pwd | ls
2833

2934
- name: Build Documentation
30-
run: |
31-
cd docs
32-
docfx build docfx.json
35+
run: docfx build docfx.json
3336

3437
- name: Deploy to GitHub Pages
3538
uses: peaceiris/actions-gh-pages@v3
3639
with:
3740
github_token: ${{ secrets.GITHUB_TOKEN }}
38-
publish_dir: ./docs/_site
41+
publish_dir: ./docs/_site

0 commit comments

Comments
 (0)