mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-10 19:38:39 +00:00
After merge this pull request, need to change the `DATABASE_URL` in environment secrets (stable/beta) from `127.0.0.1` to `affine-cloud-sql-proxy`
24 lines
498 B
YAML
24 lines
498 B
YAML
name: Deploy Cloudflare Worker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- canary
|
|
paths:
|
|
- tools/workers/**
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
name: Deploy
|
|
environment: stable
|
|
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'
|