documentation #78
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: documentation | |
| on: | |
| workflow_dispatch: | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: docs | |
| cancel-in-progress: false | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| if: github.ref_name == 'master' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| - run: pnpm install | |
| - run: pnpm run build | |
| - run: pnpm -r --filter docs run build | |
| - name: Deploy docs | |
| run: pnpm --dir docs exec wrangler deploy --env production | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| - name: Upload Wrangler logs | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: wrangler-logs | |
| path: ~/.config/.wrangler/logs/*.log | |
| if-no-files-found: ignore |