mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 19:22:49 +03:00
24 lines
502 B
YAML
24 lines
502 B
YAML
name: Deploy Cloudflare Worker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- canary
|
|
paths:
|
|
- tools/workers/**
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
name: Deploy
|
|
environment: production
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Publish
|
|
uses: cloudflare/wrangler-action@v3.3.2
|
|
with:
|
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
|
workingDirectory: 'tools/workers'
|
|
packageManager: 'yarn'
|