Skip to content

Commit 1b2f8ca

Browse files
authored
build: merge steam and github actions (#45)
1 parent 0ebb0eb commit 1b2f8ca

File tree

2 files changed

+41
-97
lines changed

2 files changed

+41
-97
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release to GitHub
1+
name: Release
22

33
on: workflow_dispatch
44

@@ -99,6 +99,11 @@ jobs:
9999
versioning: Custom
100100
version: ${{ needs.release.outputs.version }}
101101
buildMethod: Editor.BuildScript.Build
102+
- name: Upload artifact
103+
uses: actions/upload-artifact@v3
104+
with:
105+
name: Build-${{ matrix.targetPlatform }}
106+
path: build/${{ matrix.targetPlatform }}
102107
- name: Create zip archive
103108
run: |
104109
cd build/${{ matrix.targetPlatform }}
@@ -117,3 +122,38 @@ jobs:
117122
name,
118123
data: require("fs").readFileSync("artifact.zip"),
119124
});
125+
steam:
126+
name: Deploy to Steam
127+
needs: [ build ]
128+
runs-on: ubuntu-latest
129+
steps:
130+
- name: Checkout Repository
131+
uses: actions/checkout@v3
132+
with:
133+
fetch-depth: 0
134+
- name: Download StandaloneWindows64 Artifact
135+
uses: actions/download-artifact@v3
136+
with:
137+
name: Build-StandaloneWindows64
138+
path: build/StandaloneWindows64
139+
- name: Download StandaloneLinux64 Artifact
140+
uses: actions/download-artifact@v3
141+
with:
142+
name: Build-StandaloneLinux64
143+
path: build/StandaloneLinux64
144+
- name: Download StandaloneOSX Artifact
145+
uses: actions/download-artifact@v3
146+
with:
147+
name: Build-StandaloneOSX
148+
path: build/StandaloneOSX
149+
- uses: game-ci/steam-deploy@v3
150+
with:
151+
username: ${{ secrets.STEAM_USERNAME }}
152+
configVdf: ${{ secrets.STEAM_CONFIG_VDF}}
153+
appId: ${{ secrets.STEAM_APP_ID }}
154+
buildDescription: v${{ needs.build.outputs.buildVersion }}
155+
rootPath: build
156+
depot1Path: StandaloneWindows64
157+
depot2Path: StandaloneLinux64
158+
depot3Path: StandaloneOSX
159+
releaseBranch: prerelease

.github/workflows/steam.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)