Skip to content

Update all deps (#2029) #175

Update all deps (#2029)

Update all deps (#2029) #175

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@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- run: cd packages/workers && npm install
- uses: cloudflare/[email protected]
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