12
12
- name : Checkout
13
13
uses : actions/checkout@v4
14
14
15
+ - name : Extract Version & Determine Patch
16
+ id : version_info
17
+ run : |
18
+ MAJOR_MINOR=$(grep "const VERSION" Autoload/Constants.gd | awk -F\" '{print $2}')
19
+ PATCH=$(git rev-list --count HEAD)
20
+ FULL_VERSION="$MAJOR_MINOR.$PATCH"
21
+ echo "::set-output name=FULL_VERSION::$FULL_VERSION"
22
+
15
23
- name : Setup Godot and Export Templates
16
24
run : |
17
25
wget -q https://downloads.tuxfamily.org/godotengine/3.5.3/Godot_v3.5.3-stable_linux_headless.64.zip
@@ -24,29 +32,26 @@ jobs:
24
32
25
33
- name : Prepare Directories
26
34
run : |
27
- # Cleanup previous exports
28
- rm -rf ./bin/*
29
-
30
- # Prepare directories for game exports
31
- mkdir -p ./bin/ExportLinux/UnearthLinux/ ./bin/ExportWindows/Unearth/
35
+ rm -rf ./bin
36
+ mkdir -p ./bin/ExportLinux/UnearthLinux ./bin/ExportWindows/Unearth
32
37
33
38
- name : Export Godot Game (Linux)
34
39
run : ./Godot_v3.5.3-stable_linux_headless.64 --export "Linux/X11" ./bin/ExportLinux/UnearthLinux/Unearth.x86_64
35
40
36
41
- name : Export Godot Game (Windows)
37
42
run : ./Godot_v3.5.3-stable_linux_headless.64 --export "Windows Desktop" ./bin/ExportWindows/Unearth/Unearth.exe
38
43
39
- - name : Replace Icon in Windows Export
40
- run : ./Godot_v3.5.3-stable_linux_headless.64 -s Art/ReplaceIcon.gd Art/UnearthIcon.ico ./bin/ExportWindows/Unearth/Unearth.exe
44
+ # - name: Replace Icon in Windows Export
45
+ # run: ./Godot_v3.5.3-stable_linux_headless.64 -s Art/ReplaceIcon.gd Art/UnearthIcon.ico ./bin/ExportWindows/Unearth/Unearth.exe
41
46
42
47
- name : Upload Linux Artifacts
43
48
uses : actions/upload-artifact@v3
44
49
with :
45
- name : UnearthLinux
50
+ name : UnearthLinux-${{ steps.version_info.outputs.FULL_VERSION }}
46
51
path : ./bin/ExportLinux/
47
52
48
53
- name : Upload Windows Artifacts
49
54
uses : actions/upload-artifact@v3
50
55
with :
51
- name : UnearthWindows
56
+ name : UnearthWindows-${{ steps.version_info.outputs.FULL_VERSION }}
52
57
path : ./bin/ExportWindows/
0 commit comments