dfhack/.github/workflows/steam.yml

87 lines
2.2 KiB
YAML

2023-03-07 18:13:41 -07:00
name: Deploy to Steam
on:
workflow_dispatch:
inputs:
ref:
description: Branch or commit hash
2023-03-07 18:13:41 -07:00
type: string
required: true
default: develop
2023-03-07 18:13:41 -07:00
version:
description: Version or build description
2023-03-07 18:13:41 -07:00
type: string
required: true
release_channel:
2023-07-31 02:49:02 -06:00
description: Steam release channel
2023-03-07 18:13:41 -07:00
type: string
required: true
default: staging
2023-03-07 18:13:41 -07:00
jobs:
2023-07-31 02:49:02 -06:00
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
2023-03-07 18:13:41 -07:00
deploy-to-steam:
name: Deploy to Steam
2023-07-31 02:49:02 -06:00
runs-on: ubuntu-latest
2023-03-07 18:13:41 -07:00
steps:
2023-07-31 02:49:02 -06:00
- name: Stage common depot files
uses: actions/download-artifact@v3
2023-05-18 15:06:00 -06:00
with:
2023-07-31 02:49:02 -06:00
name: common-depot
path: common
- name: Stage linux64 depot files
uses: actions/download-artifact@v3
2023-07-22 23:54:21 -06:00
with:
2023-07-31 02:49:02 -06:00
name: linux64-depot
path: linux64
- name: Stage win64 depot files
uses: actions/download-artifact@v3
2023-03-07 18:13:41 -07:00
with:
2023-07-31 02:49:02 -06:00
name: win64-depot
path: win64
2023-03-07 18:13:41 -07:00
- name: Steam deploy
2023-07-17 14:46:54 -06:00
uses: game-ci/steam-deploy@v3
2023-03-07 18:13:41 -07:00
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF}}
appId: 2346660
buildDescription: ${{ github.event.inputs.version }}
2023-03-07 18:34:44 -07:00
rootPath: build
2023-07-31 02:49:02 -06:00
depot1Path: common
depot2Path: win64
depot3Path: linux64
2023-03-07 18:13:41 -07:00
releaseBranch: ${{ github.event.inputs.release_channel }}