Skip to content

Commit a24a3a5

Browse files
committed
Add a dispatch create release action
1 parent 8b4e339 commit a24a3a5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: 'Dispatch: Create Release'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
description: 'Stable or pre-release'
8+
required: true
9+
type: choice
10+
options:
11+
- prerelease
12+
- release
13+
version_bump:
14+
description: 'Version bump type'
15+
required: true
16+
type: choice
17+
options:
18+
- major
19+
- minor
20+
- patch
21+
22+
jobs:
23+
github_release:
24+
uses: ./.github/workflows/call.github_release.yml
25+
secrets: inherit
26+
with:
27+
release_mode: ${{ inputs.release_type }}
28+
version_bump: ${{ inputs.version_bump }}
29+
30+
platform_uploads:
31+
needs: github_release
32+
if: needs.github_release.outputs.release_created == 'true'
33+
uses: ./.github/workflows/call.platform_uploads.yml
34+
secrets: inherit
35+
with:
36+
target_tag: ${{ needs.github_release.outputs.tag_name }}
37+
upload_modrinth: 'true'
38+
upload_dbo: 'false'
39+
upload_hangar: 'false'

0 commit comments

Comments
 (0)