moved to Macos prefer first #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Documentation to Cloudflare Workers | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| strategy: | |
| matrix: | |
| include: | |
| - runner: [self-hosted, macOS, ARM64] | |
| fallback: ubuntu-latest | |
| fail-fast: false | |
| runs-on: ${{ matrix.runner }} | |
| continue-on-error: ${{ matrix.fallback != '' }} | |
| defaults: | |
| run: | |
| working-directory: documentation | |
| env: | |
| # Bump Node heap to 6 GB — the typedoc-generated type-reference | |
| # content pushes Docusaurus's webpack bundle past the default 2 GB. | |
| NODE_OPTIONS: --max-old-space-size=6144 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Deploy to Cloudflare Workers | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |