diff --git a/.github/workflows/arch-docs.yml b/.github/workflows/arch-docs.yml new file mode 100644 index 0000000000000..d41b8a4a731d5 --- /dev/null +++ b/.github/workflows/arch-docs.yml @@ -0,0 +1,34 @@ +name: Architecture Docs + +on: + push: + branches: [main, master, canary] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: pages + cancel-in-progress: true + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: supermodeltools/arch-docs@main + id: docs + with: + supermodel-api-key: ${{ secrets.SUPERMODEL_API_KEY }} + base-url: /rust/ + + - name: Install wrangler + run: npm install -g wrangler@3 + + - name: Deploy to Cloudflare Pages + 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