6
0

Steamworks v1

This commit is contained in:
Jon Michael Aanes 2024-01-25 21:33:32 +01:00
parent fa706cf2d7
commit 445fbf6ad7

View File

@ -4,18 +4,42 @@ on:
workflow_call:
inputs:
ITCH_USERNAME:
description: For uploading to itch.io
required: false
ITCH_GAME_ID:
description: For uploading to itch.io
required: false
STEAM_APP_ID:
description: For uploading to Steamworks
required: false
STEAM_RELEASE_BRANCH:
description: For uploading to Steamworks
required: false
secrets:
BUTLER_API_KEY:
required: false
PIPELINE_WORKER_SSH_KEY:
description: Used for accessing private dependencies.
type: string
required: true
PIPELINE_WORKER_KNOWN_HOSTS:
description: Used for accessing private dependencies.
type: string
required: true
PIPELINE_WORKER_USERNAME:
description: Used for accessing private dependencies.
type: string
required: true
BUTLER_API_KEY:
description: API key for accessing itch.io Butler API
type: string
required: false
STEAM_USERNAME:
description: Username for Steam uploading user
type: string
required: false
STEAM_CONFIG_VDF:
description: VDF configuration including access key
type: string
required: false
jobs:
package:
@ -74,6 +98,7 @@ jobs:
itchUsername: ${{ inputs.ITCH_USERNAME }}
itchGameId: ${{ inputs.ITCH_GAME_ID }}
buildChannel: love-linux-mac
- uses: KikimoraGames/itch-publish@v0.0.3
if: always() && github.event_name == 'release' && inputs.ITCH_GAME_ID
with:
@ -82,3 +107,18 @@ jobs:
itchUsername: ${{ inputs.ITCH_USERNAME }}
itchGameId: ${{ inputs.ITCH_GAME_ID }}
buildChannel: win64
# Upload to steam
- uses: game-ci/steam-deploy@v3
if: always() && github.event_name == 'release' && inputs.STEAM_APP_ID
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF }}
appId: ${{ inputs.STEAM_APP_ID }}
buildDescription: v0.0.1 # TODO
rootPath: .
#depot1Path: StandaloneWindows64
depot2Path: ${{ steps.findfiles.outputs.win64 }}
releaseBranch: ${{ secrets.STEAM_RELEASE_BRANCH }}