87 lines
2.2 KiB
YAML
87 lines
2.2 KiB
YAML
name: Deploy to Steam
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
ref:
|
|
description: Branch or commit hash
|
|
type: string
|
|
required: true
|
|
default: develop
|
|
version:
|
|
description: Version or build description
|
|
type: string
|
|
required: true
|
|
release_channel:
|
|
description: Steam release channel
|
|
type: string
|
|
required: true
|
|
default: staging
|
|
|
|
jobs:
|
|
depot-common:
|
|
name: Common depot files
|
|
uses: ./.github/workflows/build-linux.yml
|
|
with:
|
|
artifact-name: common-depot
|
|
ref: ${{ github.event.inputs.ref }}
|
|
platform-files: false
|
|
docs: true
|
|
stonesense: true
|
|
secrets: inherit
|
|
|
|
depot-linux:
|
|
name: Linux depot files
|
|
uses: ./.github/workflows/build-linux.yml
|
|
with:
|
|
artifact-name: linux64-depot
|
|
ref: ${{ github.event.inputs.ref }}
|
|
cache-id: depot
|
|
common-files: false
|
|
stonesense: true
|
|
gcc-ver: "10"
|
|
secrets: inherit
|
|
|
|
depot-win64:
|
|
name: Windows depot files
|
|
uses: ./.github/workflows/build-windows.yml
|
|
with:
|
|
artifact-name: win64-depot
|
|
ref: ${{ github.event.inputs.ref }}
|
|
cache-id: msvc
|
|
common-files: false
|
|
launchdf: true
|
|
secrets: inherit
|
|
|
|
deploy-to-steam:
|
|
name: Deploy to Steam
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Stage common depot files
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: common-depot
|
|
path: common
|
|
- name: Stage linux64 depot files
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: linux64-depot
|
|
path: linux64
|
|
- name: Stage win64 depot files
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: win64-depot
|
|
path: win64
|
|
- name: Steam deploy
|
|
uses: game-ci/steam-deploy@v3
|
|
with:
|
|
username: ${{ secrets.STEAM_USERNAME }}
|
|
configVdf: ${{ secrets.STEAM_CONFIG_VDF}}
|
|
appId: 2346660
|
|
buildDescription: ${{ github.event.inputs.version }}
|
|
rootPath: build
|
|
depot1Path: common
|
|
depot2Path: win64
|
|
depot3Path: linux64
|
|
releaseBranch: ${{ github.event.inputs.release_channel }}
|