Skip to content

Commit 75ae013

Browse files
committed
chore: switch deployment from GitHub Pages to Cloudflare Pages
1 parent ab3abe3 commit 75ae013

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/arch-docs.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ name: Architecture Docs
22

33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main, master, canary]
66
workflow_dispatch:
77

88
permissions:
99
contents: read
10-
pages: write
11-
id-token: write
1210

1311
concurrency:
1412
group: pages
@@ -17,22 +15,18 @@ concurrency:
1715
jobs:
1816
build-and-deploy:
1917
runs-on: ubuntu-latest
20-
environment:
21-
name: github-pages
22-
url: ${{ steps.deploy.outputs.page_url }}
2318
steps:
2419
- uses: actions/checkout@v4
2520

26-
- uses: supermodeltools/arch-docs@v1
21+
- uses: supermodeltools/arch-docs@main
2722
id: docs
2823
with:
2924
supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }}
25+
base-url: /fastapi/
3026

31-
- uses: actions/configure-pages@v5
32-
33-
- uses: actions/upload-pages-artifact@v3
27+
- name: Deploy to Cloudflare Pages
28+
uses: cloudflare/wrangler-action@v3
3429
with:
35-
path: ./arch-docs-output
36-
37-
- uses: actions/deploy-pages@v4
38-
id: deploy
30+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
31+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
32+
command: pages deploy ./arch-docs-output --project-name=gtd-fastapi --branch=main

0 commit comments

Comments
 (0)