Skip to content

Commit

Permalink
build: merge steam and github actions (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarthificial authored Sep 24, 2023
1 parent 0ebb0eb commit 1b2f8ca
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 97 deletions.
42 changes: 41 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release to GitHub
name: Release

on: workflow_dispatch

Expand Down Expand Up @@ -99,6 +99,11 @@ jobs:
versioning: Custom
version: ${{ needs.release.outputs.version }}
buildMethod: Editor.BuildScript.Build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Build-${{ matrix.targetPlatform }}
path: build/${{ matrix.targetPlatform }}
- name: Create zip archive
run: |
cd build/${{ matrix.targetPlatform }}
Expand All @@ -117,3 +122,38 @@ jobs:
name,
data: require("fs").readFileSync("artifact.zip"),
});
steam:
name: Deploy to Steam
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download StandaloneWindows64 Artifact
uses: actions/download-artifact@v3
with:
name: Build-StandaloneWindows64
path: build/StandaloneWindows64
- name: Download StandaloneLinux64 Artifact
uses: actions/download-artifact@v3
with:
name: Build-StandaloneLinux64
path: build/StandaloneLinux64
- name: Download StandaloneOSX Artifact
uses: actions/download-artifact@v3
with:
name: Build-StandaloneOSX
path: build/StandaloneOSX
- uses: game-ci/steam-deploy@v3
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF}}
appId: ${{ secrets.STEAM_APP_ID }}
buildDescription: v${{ needs.build.outputs.buildVersion }}
rootPath: build
depot1Path: StandaloneWindows64
depot2Path: StandaloneLinux64
depot3Path: StandaloneOSX
releaseBranch: prerelease
96 changes: 0 additions & 96 deletions .github/workflows/steam.yml

This file was deleted.

0 comments on commit 1b2f8ca

Please sign in to comment.