Skip to content

Commit f0eb755

Browse files
committed
refactor: replace duplicated release bundling code with dedicated action
1 parent 0c87ec9 commit f0eb755

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

.github/workflows/nightly.yaml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -80,38 +80,8 @@ jobs:
8080
- name: fetch tags
8181
run: git fetch --tags origin
8282

83-
- run: mkdir release
84-
85-
- name: Download build artefacts
86-
uses: actions/download-artifact@v3
87-
with:
88-
path: release
89-
90-
- run: ls -R release
91-
92-
- name: Compress Windows Release
93-
run: |
94-
zip -j CortexCommand.windows.zip \
95-
"release/Cortex Command.exe" \
96-
external/lib/win/{fmod,SDL2}.dll
97-
98-
- name: Compress Linux Release
99-
run: |
100-
zip -j CortexCommand.linux.zip \
101-
"release/CortexCommand (Linux)/CortexCommand.AppImage" \
102-
external/lib/linux/x86_64/libfmod.so*
103-
104-
- name: Compress OSX Release
105-
run: |
106-
zip -j CortexCommand.macos.zip \
107-
"release/CortexCommand (macOS)/CortexCommand" \
108-
external/lib/macos/libfmod.dylib
109-
110-
- name: Package Data files
111-
run: |
112-
zip -r -u CortexCommand.windows.zip Data
113-
zip -r -u CortexCommand.linux.zip Data
114-
zip -r -u CortexCommand.macos.zip Data
83+
- name: Bundle Release Assets
84+
uses: ./.github/actions/bundle_release
11585

11686
- name: Get Date
11787
id: get_date

0 commit comments

Comments
 (0)