Skip to content

Commit 28f8047

Browse files
author
LocalIdentity
committed
Add manual installer build option
Adds the option to manually upload a installer to a release in case it fails Also changes the default version for the changelogs input
1 parent b107ff3 commit 28f8047

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/installer.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
release:
44
types: [published]
55
workflow_dispatch:
6+
inputs:
7+
tag_name:
8+
description: 'Tag to build'
9+
required: true
10+
default: 'v0.x.x'
611
env:
712
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
813
jobs:
@@ -23,5 +28,4 @@ jobs:
2328
run: 'python3 make_release.py --game-version 2'
2429
- name: Upload artifact
2530
run: >
26-
gh release upload ${{ github.event.release.tag_name }} (Get-ChildItem Dist -File).FullName --clobber -R ${{ github.repository }};
27-
31+
gh release upload ${{ github.event.release.tag_name || github.event.inputs.tag_name }} (Get-ChildItem Dist -File).FullName --clobber -R ${{ github.repository }};

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
releaseVersion:
77
description: 'Version number to use for this release'
88
required: true
9-
default: '2.x.x'
9+
default: '0.x.x'
1010
releaseNoteUrl:
1111
description: 'Enter the location of edited release notes to use'
1212
required: false

0 commit comments

Comments
 (0)