Skip to content

Commit 0ad5431

Browse files
authored
Cloudflare docs (#2083)
1 parent cc55754 commit 0ad5431

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/docs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Python & Rust docs
33
on:
44
push:
55
branches: [ develop ]
6+
workflow_dispatch: { }
67

78
permissions:
89
actions: read
@@ -28,6 +29,7 @@ jobs:
2829
uses: actions/upload-pages-artifact@v3
2930
with:
3031
path: docs/_build/html
32+
3133
deploy:
3234
environment:
3335
name: github-pages
@@ -38,3 +40,15 @@ jobs:
3840
- name: Deploy to GitHub Pages
3941
id: deployment
4042
uses: actions/deploy-pages@v4
43+
44+
- uses: actions/download-artifact@v4
45+
with:
46+
name: github-pages
47+
path: docs
48+
49+
# Note, since we use an API token we run it in a separate job that doesn't run any repository code.
50+
- name: Upload artifacts to CloudFlare Pages
51+
uses: cloudflare/wrangler-action@v3
52+
with:
53+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
54+
command: pages deploy docs --project-name=vortex-docs

0 commit comments

Comments
 (0)