Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
description: 'Release notes, auto generated if not given'
type: string
required: false
publish-steam:
description: 'Publish on Steam'
type: boolean
default: false

jobs:
build-linux:
Expand Down Expand Up @@ -183,3 +187,55 @@ jobs:
prerelease: ${{ github.event.inputs.publish-pre-release }}
body: ${{ steps.release-body.outputs.body }}
generate_release_notes: ${{ steps.release-body.outputs.generate_notes }}

publish-steam:
needs: [build-linux, build-windows-x64]
if: ${{ github.event.inputs.publish-steam == 'true' }}
defaults:
run:
shell: bash

runs-on: ubuntu-22.04

steps:
- name: Validate version number exists
run: |
if [ -z "${{ github.event.inputs.version-number }}" ]; then
exit 1
fi

- name: Download Windows artifact
uses: actions/download-artifact@v4
with:
name: Baballonia.win.tar.gz
path: ./artifacts

- name: Download Linux artifact
uses: actions/download-artifact@v4
with:
name: Baballonia.x64.tar.gz
path: ./artifacts

#- name: Download Linux ARM artifact
# uses: actions/download-artifact@v4
# with:
# name: Baballonia.arm64.tar.gz
# path: ./artifacts

- name: Untar artifacts
run: |
mkdir -p ./builds/windows
mkdir -p ./builds/linux-x64
tar -xf ./artifacts/Baballonia.win.tar.gz --directory ./builds/windows
tar -xf ./artifacts/Baballonia.x64.tar.gz --directory ./builds/linux-x64

- name: Upload to Steam
uses: game-ci/steam-deploy@v3
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF }}
appId: 4091970
buildDescription: ${{ github.event.inputs.version-number }}
depot2Path: builds/windows
depot3Path: builds/linux-x64
releaseBranch: prerelease