Skip to content

Commit 2f07fd3

Browse files
author
GitHub Actions
committed
ci: Add direct GitHub Pages deployment for faster updates
1 parent add42be commit 2f07fd3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build_pdf.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,17 @@ jobs:
117117
git diff --staged --quiet || git commit -m "docs: Deploy documentation (auto-generated) [skip ci]"
118118
git pull --rebase origin main
119119
git push origin main
120+
121+
#################################################
122+
# Deploy to GitHub Pages (faster deployment)
123+
#################################################
124+
- name: Deploy to GitHub Pages
125+
if: github.ref == 'refs/heads/main'
126+
uses: peaceiris/actions-gh-pages@v3
127+
with:
128+
github_token: ${{ secrets.GITHUB_TOKEN }}
129+
publish_dir: ./docs
130+
publish_branch: gh-pages
131+
force_orphan: false
132+
keep_files: false
133+
enable_jekyll: false

0 commit comments

Comments
 (0)