Skip to content

Bump deps (#2149)

Bump deps (#2149) #180

name: Deploy Cloudflare workers
on:
push:
branches:
- main
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 }}" | wrangler secret put CLOUDFLARE_API_TOKEN