From 5eae06f2a747b14b077aaf0ba11623f1b278b4a9 Mon Sep 17 00:00:00 2001 From: Grey Newell Date: Tue, 10 Feb 2026 17:12:44 -0500 Subject: [PATCH 1/3] Add arch-docs workflow --- .github/workflows/arch-docs.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/arch-docs.yml diff --git a/.github/workflows/arch-docs.yml b/.github/workflows/arch-docs.yml new file mode 100644 index 0000000000000..e4f5fe4c18d56 --- /dev/null +++ b/.github/workflows/arch-docs.yml @@ -0,0 +1,38 @@ +name: Architecture Docs + +on: + push: + branches: [main, master, canary] + workflow_dispatch: + +permissions: + contents: write + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deploy.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + + - uses: supermodeltools/arch-docs@main + id: docs + with: + supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }} + + - uses: actions/configure-pages@v5 + + - uses: actions/upload-pages-artifact@v3 + with: + path: ./arch-docs-output + + - uses: actions/deploy-pages@v4 + id: deploy \ No newline at end of file From e8f16b48d87065a0257c1bbf3bcd0ca3129a1d9d Mon Sep 17 00:00:00 2001 From: Grey Newell Date: Fri, 6 Mar 2026 12:08:09 -0500 Subject: [PATCH 2/3] chore: switch deployment from GitHub Pages to Cloudflare Pages --- .github/workflows/arch-docs.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/arch-docs.yml b/.github/workflows/arch-docs.yml index e4f5fe4c18d56..27407d470fb93 100644 --- a/.github/workflows/arch-docs.yml +++ b/.github/workflows/arch-docs.yml @@ -6,9 +6,7 @@ on: workflow_dispatch: permissions: - contents: write - pages: write - id-token: write + contents: read concurrency: group: pages @@ -17,9 +15,6 @@ concurrency: jobs: build-and-deploy: runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deploy.outputs.page_url }} steps: - uses: actions/checkout@v4 @@ -27,12 +22,11 @@ jobs: id: docs with: supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }} + base-url: /rust/ - - uses: actions/configure-pages@v5 - - - uses: actions/upload-pages-artifact@v3 + - name: Deploy to Cloudflare Pages + uses: cloudflare/wrangler-action@v3 with: - path: ./arch-docs-output - - - uses: actions/deploy-pages@v4 - id: deploy \ No newline at end of file + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy ./arch-docs-output --project-name=gtd-rust --branch=main From 882ed618810fbfd0e9cc21c22df07c60054929bd Mon Sep 17 00:00:00 2001 From: Grey Newell Date: Fri, 6 Mar 2026 12:33:16 -0500 Subject: [PATCH 3/3] fix: use global wrangler install to avoid yarn workspace conflict --- .github/workflows/arch-docs.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/arch-docs.yml b/.github/workflows/arch-docs.yml index 27407d470fb93..d41b8a4a731d5 100644 --- a/.github/workflows/arch-docs.yml +++ b/.github/workflows/arch-docs.yml @@ -24,9 +24,11 @@ jobs: supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }} base-url: /rust/ + - name: Install wrangler + run: npm install -g wrangler@3 + - name: Deploy to Cloudflare Pages - uses: cloudflare/wrangler-action@v3 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy ./arch-docs-output --project-name=gtd-rust --branch=main + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + run: wrangler pages deploy ./arch-docs-output --project-name=gtd-rust --branch=main