Skip to content

Commit beab859

Browse files
committed
chore: switch deployment from GitHub Pages to Cloudflare Pages
1 parent 879195e commit beab859

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/arch-docs.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: write
10-
pages: write
11-
id-token: write
9+
contents: read
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

2621
- uses: supermodeltools/arch-docs@main
2722
id: docs
2823
with:
2924
supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }}
25+
base-url: /ui/
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-ui --branch=main

0 commit comments

Comments
 (0)