Skip to content

Commit 4380ed7

Browse files
committed
Upload all the Steam depots when creating a release
1 parent fdaabc0 commit 4380ed7

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

.github/workflows/cd_release.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ jobs:
7070
with:
7171
draft: true
7272
files: ${{ env.OUTPUT }}
73+
- name: Upload Steam Depot
74+
uses: actions/upload-artifact@v3
75+
with:
76+
name: steam-win32-depot
77+
path: |
78+
'./install/release/Endless Sky.exe'
79+
./install/release/*.dll
7380
7481
7582
release_windows_x64:
@@ -102,6 +109,13 @@ jobs:
102109
with:
103110
draft: true
104111
files: ${{ env.OUTPUT }}
112+
- name: Upload Steam Depot
113+
uses: actions/upload-artifact@v3
114+
with:
115+
name: steam-win64-depot
116+
path: |
117+
'./install/release/Endless Sky.exe'
118+
./install/release/*.dll
105119
106120
107121
release_macos_universal:
@@ -152,3 +166,84 @@ jobs:
152166
with:
153167
draft: true
154168
files: ${{ env.OUTPUT }}.dmg
169+
- name: Prepare Steam Depot
170+
run: |
171+
mv "Endless Sky.app/Contents/Resources/endless-sky.icns" .
172+
rm -rf "Endless Sky.app/Contents/Resources"
173+
mkdir "Endless Sky.app/Contents/Resources"
174+
mv endless-sky.icns "Endless Sky.app/Contents/Resources"
175+
mkdir depot/
176+
mv "Endless Sky.app/" depot/
177+
- name: Upload Steam Depot
178+
uses: actions/upload-artifact@v3
179+
with:
180+
name: steam-macos-depot
181+
path: depot
182+
183+
184+
release_steam_linux:
185+
name: Steam Linux
186+
runs-on: ubuntu-latest
187+
strategy:
188+
matrix:
189+
arch: [x64, x86]
190+
steps:
191+
- uses: actions/checkout@v3
192+
- name: Build Endless Sky
193+
run: |
194+
cd steam
195+
docker-compose run steam-${{ matrix.arch }}
196+
- name: Prepare binary
197+
run: cp build/steam-${{ matrix.arch }}/endless-sky .
198+
- name: Upload Steam Depot
199+
uses: actions/upload-artifact@v3
200+
with:
201+
name: steam-linux${{ matrix.arch == 'x64' && '64' || '32' }}-depot
202+
path: endless-sky
203+
204+
205+
deploy_steam:
206+
name: Deploy Steam
207+
needs: [release_steam_linux, release_windows_x64, release_windows_x86, release_macos_universal]
208+
runs-on: ubuntu-latest
209+
# environment: steam
210+
env:
211+
data: steam-data-depot
212+
linux32: steam-linux-x86
213+
linux64: steam-linux-x64
214+
win32: steam-win32
215+
win64: steam-win64
216+
macos: steam-macos
217+
steps:
218+
- uses: actions/checkout@v3
219+
- name: Upload Steam Data Depot
220+
uses: actions/upload-artifact@v3
221+
with:
222+
name: ${{ env.data }}
223+
path: |
224+
changelog
225+
copyright
226+
credits.txt
227+
icon.png
228+
keys.txt
229+
license.txt
230+
data/
231+
images/
232+
sounds/
233+
# - uses: game-ci/steam-deploy@v1
234+
# with:
235+
# appId: 404410
236+
# buildDescription: canary-${{ github.sha }}
237+
# username: ${{ secrets.STEAM_DEPLOY_UN }}
238+
# password: ${{ secrets.STEAM_DEPLOY_PW }}
239+
# configVdf: ${{ secrets.STEAM_DEPLOY_VDF }}
240+
# ssfnFileName: ${{ secrets.STEAM_DEPLOY_SSFN_NAME }}
241+
# ssfnFileContents: ${{ secrets.STEAM_DEPLOY_SSFN }}
242+
# rootPath: ''
243+
# depot1Path: ${{ env.data }}
244+
# depot3Path: ${{ env.win32 }}
245+
# depot4Path: ${{ env.win64 }}
246+
# depot5Path: ${{ env.macos }}
247+
# depot6Path: ${{ env.linux32 }}
248+
# depot7Path: ${{ env.linux64 }}
249+
# releaseBranch: canary

0 commit comments

Comments
 (0)