Skip to content

Commit 866dd98

Browse files
committed
build: allow conditional releases
1 parent add838d commit 866dd98

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,26 @@ on:
33
push:
44
tags:
55
- 'v*'
6+
workflow_dispatch:
7+
inputs:
8+
release_web:
9+
type: boolean
10+
description: Release web packages
11+
default: true
12+
release_csharp:
13+
type: boolean
14+
description: Release C# packages
15+
default: true
16+
release_kotlin_android:
17+
type: boolean
18+
description: Release Android packages
19+
default: true
620

721
jobs:
822
release_web:
923
name: Web
1024
runs-on: ubuntu-latest
25+
if: (github.event_name == 'push') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_web == 'true')
1126
steps:
1227
- uses: actions/checkout@v6
1328
with:
@@ -59,6 +74,7 @@ jobs:
5974
release_csharp:
6075
name: C#
6176
runs-on: ubuntu-latest
77+
if: (github.event_name == 'push') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_csharp == 'true')
6278
steps:
6379
- uses: actions/checkout@v6
6480
with:
@@ -82,6 +98,7 @@ jobs:
8298
release_kotlin_android:
8399
name: Kotlin (Android)
84100
runs-on: windows-latest
101+
if: (github.event_name == 'push') || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_kotlin_android == 'true')
85102
env:
86103
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{secrets.OSSRH_USERTOKEN_USERNAME}}
87104
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{secrets.OSSRH_USERTOKEN_PASSWORD}}

0 commit comments

Comments
 (0)