Skip to content

Commit

Permalink
doc: Deploy doc into Cloudflare by GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Mar 21, 2024
1 parent 9263832 commit 9cdeb51
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
run: |
source .venv/bin/activate
make -C doc dirhtml
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: doc/_build/dirhtml
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy doc/_build/dirhtml --project-name=${{ secrets.CLOUDFLARE_PAGES_NAME }}

0 comments on commit 9cdeb51

Please sign in to comment.