mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 18:02:51 +03:00
23 lines
474 B
YAML
23 lines
474 B
YAML
name: Deploy Cloudflare Worker
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- packages/workers/**
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
name: Deploy
|
|
environment: production
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Publish
|
|
uses: cloudflare/wrangler-action@2.0.0
|
|
with:
|
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
|
workingDirectory: 'packages/workers'
|