phishing mails, drizzle, postman, 200 ok #8
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: Automated Deployment of cf-server to Cloudflare Workers | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'apps/cf-server/**' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'apps/cf-server/**' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Deploy | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: latest | |
| run_install: false | |
| - name: Get pnpm store directory | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| - name: Setup pnpm cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install dependencies for the monorepo | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Navigate to Cloudflare worker app directory | |
| run: cd apps/cf-server | |
| - name: Install wrangler in cf-server | |
| run: pnpm add wrangler@4.32.0 --workspace-root | |
| - name: Deploy to Cloudflare Workers | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: deploy apps/cf-server/src/index.ts --minify --env="" | |
| wranglerVersion: "4.32.0" |