fix: add feixiaohao #40
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 to Cloudflare | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - test | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install Wrangler | |
| run: npm add -g wrangler | |
| - name: Install Pnpm | |
| run: npm add -g pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: npm run build | |
| - name: Deploy to Cloudflare Pages | |
| run: wrangler pages deploy --branch=main | |
| env: | |
| NODE_OPTIONS: "--max-old-space-size=8192" | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |