-
Notifications
You must be signed in to change notification settings - Fork 321
81 lines (74 loc) · 2.42 KB
/
Copy pathrelease.yml
File metadata and controls
81 lines (74 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Release
run-name: Release triggered by ${{ github.actor }}
on:
schedule:
# Nightly build at midnight EST (05:00 UTC)
- cron: '0 5 * * *'
workflow_dispatch:
inputs:
platform:
description: 'Platform for the release (all, ios, android, desktop)'
required: false
type: choice
default: 'all'
options:
- all
- ios
- android
- desktop
version:
description: 'Explicit version to set (e.g., 1.2.3). Leave empty for auto-detection.'
required: false
type: string
version_type:
description: 'Type of version bump (auto, patch, minor, major)'
required: false
type: choice
default: 'auto'
options:
- auto
- patch
- minor
- major
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
version_bump:
name: Version Bump
uses: ./.github/workflows/version-bump.yml
secrets: inherit
with:
platform: ${{ inputs.platform || 'all' }}
version: ${{ inputs.version }}
version_type: ${{ inputs.version_type || 'auto' }}
nightly: ${{ github.event_name == 'schedule' }}
desktop:
name: Desktop Release
needs: version_bump
if: needs.version_bump.result == 'success' && (inputs.platform == 'all' || inputs.platform == 'desktop' || github.event_name == 'schedule')
uses: ./.github/workflows/desktop-release.yml
secrets: inherit
with:
version: ${{ needs.version_bump.outputs.new_version }}
nightly: ${{ github.event_name == 'schedule' }}
ios:
name: iOS Release
needs: version_bump
if: needs.version_bump.result == 'success' && (inputs.platform == 'all' || inputs.platform == 'ios' || github.event_name == 'schedule')
uses: ./.github/workflows/ios-release.yml
secrets: inherit
with:
version: ${{ needs.version_bump.outputs.new_version }}
nightly: ${{ github.event_name == 'schedule' }}
android:
name: Android Release
needs: version_bump
if: needs.version_bump.result == 'success' && (inputs.platform == 'all' || inputs.platform == 'android' || github.event_name == 'schedule')
uses: ./.github/workflows/android-release.yml
secrets: inherit
with:
version: ${{ needs.version_bump.outputs.new_version }}
nightly: ${{ github.event_name == 'schedule' }}