Skip to content

Commit d187041

Browse files
author
MarxMustermann
committed
fixed bug (hopefully)
1 parent a624cfe commit d187041

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ jobs:
5151
cp ./OfMiceAndMechs-Linux.tar.gz Game/Data/
5252
cd Game/Data/
5353
revision="$(git rev-parse --short HEAD)"
54-
gh release upload Dev-$revision ./OfMiceAndMechs-Linux.tar.gz
54+
gh release create Dev-$revision ./OfMiceAndMechs-Linux.tar.gz --generate-notes --latest || gh release upload Dev-$revision ./OfMiceAndMechs-Linux.tar.gz
5555

.github/workflows/win.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ jobs:
4444
Set-Location -Path ./Game/Data
4545
Set-Variable -Name "s" -Value (git rev-parse --short HEAD)
4646
$s = "Dev-"+$s
47-
gh release create $s ./OfMiceAndMechs-Win.zip --generate-notes --latest
47+
try {
48+
gh release create $s ./OfMiceAndMechs-Win.zip --generate-notes --latest
49+
} catch {
50+
gh release update $s ./OfMiceAndMechs-Win.zip
51+
}

0 commit comments

Comments
 (0)