mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
ci: build in beta mode when release track is beta
This commit is contained in:
15
.github/workflows/desktop.publish.yml
vendored
15
.github/workflows/desktop.publish.yml
vendored
@@ -33,6 +33,14 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: true
|
default: true
|
||||||
description: "Build for macOS?"
|
description: "Build for macOS?"
|
||||||
|
release-track:
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
default: stable
|
||||||
|
description: "Select the release track"
|
||||||
|
options:
|
||||||
|
- stable
|
||||||
|
- beta
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -61,9 +69,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "NX_CLOUD_ACCESS_TOKEN=${{ secrets.NX_CLOUD_ACCESS_TOKEN }}" >> $GITHUB_ENV
|
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
|
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
|
- name: Build desktop bundle
|
||||||
working-directory: ./apps/desktop
|
working-directory: ./apps/desktop
|
||||||
run: npm run bundle
|
run: npm run bundle
|
||||||
|
|||||||
Reference in New Issue
Block a user