Skip to content

Commit 994d3b2

Browse files
author
Martin D. Weinberg
committed
Remove ReadTheDocs trigger and publish to github pages
1 parent c4ae049 commit 994d3b2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build_docs.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ jobs:
3232
with:
3333
name: html-docs
3434
path: _build/html # Path to your built documentation
35-
- name: Trigger Read the Docs build (using webhook)
36-
run: |
37-
# Replace with your actual Read the Docs webhook URL and token
38-
curl -X POST -d "{}" ${{ secrets.RTDS_WEBHOOK_URL }} -H "Authorization: token ${{ secrets.RTDS_WEBHOOK_TOKEN }}"
39-
35+
- name: Deploy to GitHub Pages
36+
uses: peaceiris/actions-gh-pages@v3
37+
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
38+
if: ${{ github.event_name == 'push' }}
39+
with:
40+
publish_branch: gh-pages
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: _build/
43+
force_orphan: true

0 commit comments

Comments
 (0)