|
1 | | -name: Collect & Release Builds |
| 1 | +name: Create Release Builds |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | workflow_dispatch: |
|
13 | 13 |
|
14 | 14 | jobs: |
15 | 15 | collect-release: |
16 | | - name: Create Release Builds |
| 16 | + name: Release ${{ github.event.inputs.tag_name }} Builds |
17 | 17 | runs-on: ubuntu-latest |
18 | 18 |
|
19 | 19 | steps: |
@@ -72,14 +72,29 @@ jobs: |
72 | 72 | run: | |
73 | 73 | mkdir -p renamed |
74 | 74 |
|
| 75 | + # Windows |
75 | 76 | mv artifacts/windows/executable/CodenameEngine.exe renamed/update-windows.exe |
76 | | - zip -r "renamed/Codename Engine-Windows.zip" artifacts/windows/full_build |
| 77 | + cd artifacts/windows/full_build |
| 78 | + zip -r ../../../renamed/"Codename Engine-Windows.zip" * |
| 79 | + cd - |
77 | 80 |
|
| 81 | + # macOS |
78 | 82 | mv artifacts/macos/executable/CodenameEngine renamed/update-mac |
79 | | - zip -r "renamed/Codename Engine-Mac.zip" artifacts/macos/full_build |
| 83 | + cd artifacts/macos/full_build |
| 84 | + if [ -f CodenameEngine.tar.gz ]; then |
| 85 | + # Keep tar.gz as-is |
| 86 | + cp CodenameEngine.tar.gz ../../../renamed/"Codename Engine-Mac.tar.gz" |
| 87 | + else |
| 88 | + # Zip contents at root |
| 89 | + zip -r ../../../renamed/"Codename Engine-Mac.zip" * |
| 90 | + fi |
| 91 | + cd - |
80 | 92 |
|
| 93 | + # Linux |
81 | 94 | mv artifacts/linux/executable/CodenameEngine renamed/update-linux |
82 | | - zip -r "renamed/Codename Engine-Linux.zip" artifacts/linux/full_build |
| 95 | + cd artifacts/linux/full_build |
| 96 | + zip -r ../../../renamed/"Codename Engine-Linux.zip" * |
| 97 | + cd - |
83 | 98 |
|
84 | 99 | - name: Find Base Release |
85 | 100 | id: get_base_release |
@@ -136,6 +151,7 @@ jobs: |
136 | 151 | renamed/Codename Engine-Windows.zip |
137 | 152 | renamed/update-windows.exe |
138 | 153 | renamed/Codename Engine-Mac.zip |
| 154 | + renamed/Codename Engine-Mac.tar.gz |
139 | 155 | renamed/update-mac |
140 | 156 | renamed/Codename Engine-Linux.zip |
141 | 157 | renamed/update-linux |
|
0 commit comments