dfhack/.github/workflows/steam-deploy.yml

92 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
2023-07-31 04:56:11 -06:00
depot-win64:
name: Windows depot files
uses: ./.github/workflows/build-windows.yml
2023-07-31 02:49:02 -06:00
with:
2023-07-31 04:56:11 -06:00
artifact-name: win64-depot
2023-07-31 02:49:02 -06:00
ref: ${{ github.event.inputs.ref }}
2023-07-31 03:50:32 -06:00
cache-id: release
cache-readonly: true
2023-07-31 02:49:02 -06:00
common-files: false
launchdf: true
2023-07-31 02:49:02 -06:00
secrets: inherit
2023-07-31 04:56:11 -06:00
depot-linux64:
name: Linux depot files
uses: ./.github/workflows/build-linux.yml
2023-07-31 02:49:02 -06:00
with:
2023-07-31 04:56:11 -06:00
artifact-name: linux64-depot
2023-07-31 02:49:02 -06:00
ref: ${{ github.event.inputs.ref }}
2023-07-31 03:50:32 -06:00
cache-id: release
cache-readonly: true
2023-07-31 02:49:02 -06:00
common-files: false
2023-07-31 04:56:11 -06:00
stonesense: true
2023-07-31 02:49:02 -06:00
secrets: inherit
2023-03-07 18:13:41 -07:00
deploy-to-steam:
name: Deploy to Steam
2023-07-31 04:56:11 -06:00
needs:
- depot-common
- depot-win64
- depot-linux64
2023-07-31 02:49:02 -06:00
runs-on: ubuntu-latest
2023-03-07 18:13:41 -07:00
steps:
2023-07-31 04:56:11 -06:00
- name: Stage common depot files
uses: actions/download-artifact@v3
with:
name: common-depot
path: common
- name: Stage win64 depot files
uses: actions/download-artifact@v3
with:
name: win64-depot
path: win64
- name: Stage linux64 depot files
uses: actions/download-artifact@v3
with:
name: linux64-depot
path: linux64
- 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 }}
2023-07-31 11:07:23 -06:00
rootPath: .
2023-07-31 04:56:11 -06:00
depot1Path: common
depot2Path: win64
depot3Path: linux64
releaseBranch: ${{ github.event.inputs.release_channel }}