tempoary workaround of node #20
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
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - v* | |
| name: Upload Docs | |
| jobs: | |
| upload-docs: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4.2.2 | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v1.2.1 | |
| with: | |
| version: latest | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version-file: package.json | |
| - name: Install Test Dependencies | |
| run: bun i | |
| - name: Build Docs | |
| run: zig build -Demit-docs | |
| - name: Upload Docs | |
| uses: thislight/wrangler-action@92fe592d19c4db56b6a2d4d08973e3d4181a777a | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy zig-out/docs --project-name=zigpak | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload Docs to Prod | |
| uses: thislight/wrangler-action@92fe592d19c4db56b6a2d4d08973e3d4181a777a | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy zig-out/docs --project-name=zigpak --branch=main | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| if: startsWith(github.ref_name, 'v') |