Skip to content

Commit e436312

Browse files
authored
Create publish.yml
1 parent e4a4e36 commit e436312

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ... previous steps ...
2+
- name: Build DocFX site
3+
run: docfx build
4+
5+
- name: Add .nojekyll file to disable Jekyll on GitHub Pages
6+
run: echo "" > _site/.nojekyll
7+
8+
- name: Deploy to GitHub Pages
9+
uses: peaceiris/actions-gh-pages@v4
10+
with:
11+
github_token: ${{ secrets.GITHUB_TOKEN }}
12+
publish_dir: ./_site
13+
publish_branch: gh-pages
14+
user_name: github-actions[bot]
15+
user_email: github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)