2023-03-07 18:13:41 -07:00
|
|
|
name: Deploy to Steam
|
|
|
|
|
|
|
|
on:
|
2023-08-01 01:11:46 -06:00
|
|
|
push:
|
|
|
|
tags:
|
2023-08-19 00:34:37 -06:00
|
|
|
- '*-r*'
|
2023-08-01 01:11:46 -06:00
|
|
|
|
2023-03-07 18:13:41 -07:00
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
2023-06-08 14:35:29 -06:00
|
|
|
ref:
|
2023-05-21 11:34:17 -06:00
|
|
|
description: Branch or commit hash
|
2023-03-07 18:13:41 -07:00
|
|
|
type: string
|
|
|
|
required: true
|
2023-05-21 11:34:17 -06:00
|
|
|
default: develop
|
2023-03-07 18:13:41 -07:00
|
|
|
version:
|
2023-05-21 11:34:17 -06:00
|
|
|
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
|
2023-04-29 23:30:42 -06:00
|
|
|
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
|
2023-07-31 05:02:12 -06:00
|
|
|
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-19 01:32:36 -06:00
|
|
|
- name: Download depot files
|
2023-07-31 04:56:11 -06:00
|
|
|
uses: actions/download-artifact@v3
|
2023-08-19 01:32:36 -06:00
|
|
|
- name: Stage depot files
|
|
|
|
run: |
|
|
|
|
for name in common win64 linux64; do
|
|
|
|
cd ${name}-depot
|
|
|
|
tar xjf ${name}-depot.tar.bz2
|
|
|
|
rm ${name}-depot.tar.bz2
|
|
|
|
cd ..
|
|
|
|
done
|
2023-07-31 04:56:11 -06:00
|
|
|
- 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' }}
|