Skip to content

Commit

Permalink
change to cloudfare page docs
Browse files Browse the repository at this point in the history
  • Loading branch information
t81lal committed May 9, 2024
1 parent 0b4dea0 commit fdfeb9f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/gendocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ name: gendocs

on: [push, workflow_dispatch]

permissions:
contents: write

jobs:
gendocs:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
Expand All @@ -26,11 +27,12 @@ jobs:
- name: Sphinx build
run: |
sphinx-build -M html docs/source docs/build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' }}
- name: Publish
uses: cloudflare/pages-action@1
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
force_orphan: true
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: docs
directory: docs/build/html
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'

0 comments on commit fdfeb9f

Please sign in to comment.