Skip to content

Commit

Permalink
ci: build in beta mode when release track is beta
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Mar 1, 2025
1 parent ecee87d commit 62ab799
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/desktop.publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 62ab799

Please sign in to comment.