Skip to content

Commit 36fdec7

Browse files
author
MarxMustermann
committed
added extra workflow to create release
1 parent b1ac51e commit 36fdec7

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Package Game
2+
env:
3+
GH_TOKEN: ${{ github.token }}
4+
5+
on:
6+
workflow_dispatch: {}
7+
push:
8+
branches:
9+
- 'master'
10+
11+
jobs:
12+
build-linux:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Check-out repository
18+
uses: actions/checkout@v3
19+
with:
20+
path: "./Game/Data"
21+
- name: install dep and finishing up
22+
run: |
23+
cd Game/Data/
24+
revision="$(git rev-parse --short HEAD)"
25+
echo $revision
26+
gh release create Dev-$revision --generate-notes --latest
27+

.github/workflows/linux.yml

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

.github/workflows/win.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ jobs:
4444
Set-Location -Path ./Game/Data
4545
Set-Variable -Name "s" -Value (git rev-parse --short HEAD)
4646
$s = "Dev-"+$s
47+
echo $s
4748
gh release upload $s ./OfMiceAndMechs-Win.zip

0 commit comments

Comments
 (0)