Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: only deploy in the canary version

Alex Yang0ded20fcb7b6
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 7c85dbd268..582a453288 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -4,6 +4,8 @@ on:
push:
branches:
- master
+ tags:
+ - 'v[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+'
workflow_dispatch:
inputs:
flavor:
@@ -169,6 +171,7 @@ jobs:
deploy:
name: Deploy to cluster
+ if: ${{ github.event_name == 'workflow_dispatch' || github.ref_type == 'tag' }}
environment: ${{ github.event.inputs.flavor }}
permissions:
contents: 'write'