build(electron): allow customizing channel type for internal build (#4511)

This commit is contained in:
Peng Xiao
2023-10-17 09:15:19 +08:00
committed by GitHub
parent a0095496d7
commit 5e9eeaddbd
6 changed files with 47 additions and 17 deletions

View File

@@ -2,6 +2,15 @@ name: Build Canary Desktop App on Staging Branch
on:
workflow_dispatch:
inputs:
channel_override:
description: 'channel type (canary, beta, or stable)'
type: choice
default: beta
options:
- canary
- beta
- stable
push:
branches:
# 0.6.x-staging
@@ -27,7 +36,10 @@ concurrency:
cancel-in-progress: true
env:
# BUILD_TYPE => app icon, app name, etc
BUILD_TYPE: internal
# BUILD_TYPE_OVERRIDE => channel type (canary, beta, or stable) - get the channel type (the api configs)
BUILD_TYPE_OVERRIDE: ${{ github.event.inputs.channel_override || 'beta' }}
jobs:
set-build-version: