From de5d8eb030843e1a612d17a54fdfd82497c3e55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Rom=C3=A1n=20N=C3=BA=C3=B1ez?= Date: Sat, 19 Sep 2026 17:32:04 +0000 Subject: [PATCH] Deploy production Linux builds to Steam (#47) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - package the production Linux binary and Bevy assets under `build/linux` - generate Steam TOTP credentials in CI - deploy app 3409670 to the Steam `master` branch using the latest commit hash as the build description - restrict packaging and deployment to pushes on `master`, excluding pull requests and manual runs Reviewed-on: https://git.eirexe.moe/EIREXE/shinespark/pulls/47 Co-authored-by: Álex Román Núñez --- .gitea/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f595c8e..f28aace 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -97,3 +97,31 @@ jobs: - name: Verify production binary is not Bevy/Rust dynamically linked run: | ! readelf -d target/production/shinespark | grep -E 'libbevy_dylib|libstd-.*\.so' + + - name: Package Linux Steam depot + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + run: | + mkdir -p build/linux + cp target/production/shinespark build/linux/shinespark + cp -R assets build/linux/assets + cp -R imported_assets build/linux/imported_assets + + - if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: CyberAndrii/steam-totp@v1 + name: Generate Steam TOTP + id: steam-totp + with: + shared_secret: ${{ secrets.STEAM_SHARED_SECRET }} + + - name: Deploy Linux build to Steam + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: game-ci/steam-deploy@v3 + with: + username: ${{ secrets.STEAM_USERNAME }} + password: ${{ secrets.STEAM_PASSWORD }} + totp: ${{ steps.steam-totp.outputs.code }} + appId: 3409670 + buildDescription: ${{ github.sha }} + rootPath: build + depot1Path: linux + releaseBranch: master