Update generate-website.yml

This commit is contained in:
Knugi
2025-04-29 08:49:57 +00:00
committed by GitHub
parent b3ce22ddbc
commit c37e505408

View File

@@ -30,9 +30,10 @@ jobs:
- name: Generate website from README - name: Generate website from README
run: node .github/generate-website.js run: node .github/generate-website.js
- name: Deploy to GitHub Pages - name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4 if: github.ref == 'refs/heads/main' # Ensure deployment only happens from main
uses: peaceiris/actions-gh-pages@v4
with: with:
branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }}
folder: docs publish_dir: ./docs
clean: true publish_branch: gh-pages