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

85 lines
2.2 KiB
YAML

2023-03-07 18:13:41 -07:00
name: Deploy to Steam
on:
2023-08-01 01:11:46 -06:00
push:
tags:
- '*'
2023-03-07 18:13:41 -07:00
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
2023-08-03 01:57:55 -06:00
dfhack_ref: ${{ github.event.inputs && github.event.inputs.ref || github.event.ref }}
2023-07-31 02:49:02 -06:00
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-08-03 02:09:57 -06:00
dfhack_ref: ${{ github.event.inputs && github.event.inputs.ref || github.event.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-08-03 05:13:06 -06:00
stonesense: true
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-08-03 01:57:55 -06:00
dfhack_ref: ${{ github.event.inputs && github.event.inputs.ref || github.event.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-08-01 01:11:46 -06:00
concurrency: steam
2023-03-07 18:13:41 -07:00
steps:
2023-08-05 01:56:16 -06:00
- name: Stage depot files
2023-07-31 04:56:11 -06:00
uses: actions/download-artifact@v3
- name: Steam deploy
uses: game-ci/steam-deploy@v3
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF}}
appId: 2346660
2023-08-06 00:25:10 -06:00
buildDescription: ${{ github.event.inputs && github.event.inputs.version || github.ref_name }}
2023-07-31 11:07:23 -06:00
rootPath: .
2023-08-05 01:56:16 -06:00
depot1Path: common-depot
depot2Path: win64-depot
depot3Path: linux64-depot
2023-08-01 01:11:46 -06:00
releaseBranch: ${{ github.event.inputs && github.event.inputs.release_channel || 'staging' }}