Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: build in beta mode when release track is beta

Abdullah Attad055908809e1
diff --git a/.github/workflows/desktop.publish.yml b/.github/workflows/desktop.publish.yml
index 7804f139b..d290e394b 100644
--- a/.github/workflows/desktop.publish.yml
+++ b/.github/workflows/desktop.publish.yml
@@ -33,6 +33,14 @@ on:
required: true
default: true
description: "Build for macOS?"
+ release-track:
+ type: choice
+ required: true
+ default: stable
+ description: "Select the release track"
+ options:
+ - stable
+ - beta
jobs:
build:
@@ -61,9 +69,14 @@ jobs:
run: |
echo "NX_CLOUD_ACCESS_TOKEN=${{ secrets.NX_CLOUD_ACCESS_TOKEN }}" >> $GITHUB_ENV
- - name: Generate desktop build
+ - name: Generate desktop build (stable)
+ if: ${{ inputs.release-track == 'stable' }}
run: npx nx build:desktop @notesnook/web
+ - name: Generate desktop build (beta)
+ if: ${{ inputs.release-track == 'beta' }}
+ run: BETA=true npx nx build:desktop @notesnook/web
+
- name: Build desktop bundle
working-directory: ./apps/desktop
run: npm run bundle