Skip to content

Add logs

Add logs #191

Workflow file for this run

name: Deploy Cloudflare workers
on:
push:
branches:
- main
- deploy-wran
paths:
- "packages/workers/**"
- ".github/workflows/workers-deploy.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
workers-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: cd packages/workers && npm install
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_WORKERS_DEPLOY_API_TOKEN }}
environment: "main"
workingDirectory: "packages/workers/"
postCommands: |
echo "${{ secrets.CLOUDFLARE_STREAM_IMAGES_API_TOKEN }}" | npx wrangler secret put CLOUDFLARE_API_TOKEN