From 445fbf6ad71040474b648d6860cd18448e28f283 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 25 Jan 2024 21:33:32 +0100 Subject: [PATCH] Steamworks v1 --- .gitea/workflows/love2d.yaml | 44 ++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/love2d.yaml b/.gitea/workflows/love2d.yaml index fe6b8e3..4830a82 100644 --- a/.gitea/workflows/love2d.yaml +++ b/.gitea/workflows/love2d.yaml @@ -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 }} +