game-ci/steam-deploy
Über uns
Github Action to deploy a game to Steam
Spiele und EmulationGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalSteam Deploy
Github Action to deploy a game to Steam
Thin wrapper migration: this action now installs and shells out to game-ci/cli's
deploy steamcommand instead of running its own bundled Docker image - see game-ci/roadmap#11. All existing inputs (username,depot1Path..depot9Path, etc.) keep working unchanged, with one exception:passwordis now always required (previously optional whentotpwas set) - the CLI's steamcmd login always includes it.The action downloads Valve's official steamcmd on each run, updates it to the latest version and runs it natively on the runner, not in a Docker container.
SteamCMD was moved from Docker to native runner execution in PR #98 to work around a Docker seccomp failure on Ubuntu 26.04. That also moved SteamCMD's Linux 32-bit runtime requirement onto the runner. GitHub-hosted images include the needed loader; minimal self-hosted Debian/Ubuntu images may not. The action detects and installs the missing runtime when it can.
Setup
Prerequisites
This action assumes you are registered as a partner with Steam.
1. Create a Steam Build Account
Create a specialised builder account that only has access to Edit App Metadata and Publish App Changes To Steam,
and permissions to edit your specific app.
https://partner.steamgames.com/doc/sdk/uploading#Build_Account
2. Export your build
In order to upload a build, this action is assuming that you have created that build in a previous step or job.
For an example of how to do this in Unity, see Unity Actions.
The exported artifact will be used in the next step.
3. Configure for deployment
In order to configure this action, configure a step that looks like the following:
(The parameters are explained below)
Option A. Using MFA files
jobs:
deployToSteam:
runs-on: ubuntu-latest
steps:
- uses: game-ci/steam-deploy@v3
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF}}
appId: 1234560
buildDescription: v1.2.3
rootPath: build
depot1Path: StandaloneWindows64
depot1InstallScriptPath: StandaloneWindows64/install_script.vdf
depot2Path: StandaloneLinux64
releaseBranch: prerelease
Option B. Using TOTP
jobs:
deployToSteam:
runs-on: ubuntu-latest
steps:
- uses: CyberAndrii/steam-totp@v1
name: Generate TOTP
id: steam-totp
with:
shared_secret: ${{ secrets.STEAM_SHARED_SECRET }}
- uses: game-ci/steam-deploy@v3
with:
username: ${{ secrets.STEAM_USERNAME }}
password: ${{ secrets.STEAM_PASSWORD }}
totp: ${{ steps.steam-totp.outputs.code }}
appId: 1234560
buildDescription: v1.2.3
rootPath: build
depot1Path: StandaloneWindows64
depot2Path: StandaloneLinux64
releaseBranch: prerelease
For apps whose platform depot IDs are not consecutive, provide each depot's Steam ID explicitly. For example:
- uses: game-ci/steam-deploy@v3
with:
username: ${{ secrets.STEAM_USERNAME }}
configVdf: ${{ secrets.STEAM_CONFIG_VDF }}
appId: 1136510
rootPath: steam-build
depot1Path: windows
depot1Id: 1136514
depot2Path: macos
depot2Id: 1136517
depot3Path: linux
depot3Id: 1136518
releaseBranch: beta
depot1Id..depot9Id correspond to the matching path inputs. If omitted,
IDs continue to be derived from the first depot ID and the depot slot. Empty
slots keep their position, so later depot IDs are not shifted down.
Configuration
username
The username of the Steam Build Account that you created in setup step 1.
password
The password of the Steam Build Account. Both this and totp are required together, see below.
totp
Deploying to Steam using TOTP. If this is not passed, configVdf is required.
configVdf
Steam Deploy supports two authentication methods:
- Time-based One-Time Password (TOTP) - Recommended if you have access to the shared secret.
- Steam Guard MFA with
config.vdf- An alternative method requiring a one-time setup.
If you are using the config.vdf method, follow these steps to set up the required GitHub Secret:
Install steamcmd
Install Valve's official steamcmd on your local machine. All subsequent steps will also be performed on your local machine.Log in to Steam using steamcmd
Run the following command to log in:steamcmd +login <username> <password> +quitIf prompted, check your email for the MFA code and provide it when requested.
Validate MFA completion
To ensure MFA is complete, run:steamcmd +login <username> +quitIf no MFA prompt appears, proceed to the next step.
Locate and encode the
config.vdffile
The location of theconfig.vdffile depends on your operating system:- Windows/Linux: The file is in the
config/config.vdfrelative to where you ransteamcmd. - macOS: The file is located at
~/Library/Application Support/Steam/config/config.vdf.
Encode the file and store it as a GitHub Secret:
# Windows/Linux cat config/config.vdf | base64 > config_base64.txt # macOS cat ~/Library/Application\ Support/Steam/config/config.vdf | base64 > config_base64.txt⚠️ IMPORTANT: The encoded
config.vdfcontains sensitive authentication data. Ensure you:- Store it securely as a GitHub Secret named
STEAM_CONFIG_VDF. - Never commit the raw or encoded
config.vdfto your repository. - Rotate it periodically or if it is compromised.
- Windows/Linux: The file is in the
Handling new MFA code requests
If the GitHub Action requests a new MFA code, run:steamcmd +set_steam_guard_code <code>Generate a new encoded
config.vdffile (see step 4) and update theSTEAM_CONFIG_VDFGitHub Secret with its contents.Resolving 'License expired' error
If the action fails with the errorLogging in user ... to Steam Public...FAILED (License expired), follow these steps:
- On your local machine, run:
steamcmd +login <username> - Enter the new Steam Guard code sent to your email.
- Generate a new encoded
config.vdffile (see step 4). - Update your
STEAM_CONFIG_VDFGitHub Secret with the new encoded value.
appId
The identifier of your app on steam. You can find it on your dashboard.
buildDescription
The identifier for this specific build, which helps you identify it in steam.
It is recommended to use the semantic version of the build for this.
rootPath
The root path to your builds. This is the base of which depots will search your files.
depot[X]Path
Where X is any number between 1 and 9 (inclusive both).
The relative path following your root path for the files to be included in this depot.
If your appId is 125000 then the depots 125001 ... 125009 will be assumed.
depot[X]Id
Use this to set the exact Steam depot ID for the matching depot[X]Path.
Set an ID for each depot when your app uses non-consecutive depot IDs.
If omitted, the action derives the ID from the first depot ID and the
depot's numbered slot.
firstDepotIdOverride
You can use this to override the ID of the first depot in case the IDs do not start as described in depot[X]Path (e.g. for DLCs).
If your firstDepotId is 125000 then, regardless of the used appId, the depots 125000 ... 125008 will be assumed.
(feel free to contribute if you have a more complex use case!)
releaseBranch
The branch within steam that this build will be automatically put live on.
Note that the default branch has been observed to not work as a release branch, presumably because it is potentially dangerous.
debugBranch
If set to true, do not exclude debug files from the upload.
Other Notes
Excluded Files / Folders
Certain file or folder patterns are excluded from the upload to Steam as they're unsafe to ship to players, unless debugBranch is set to true:
*.pdb- symbols files- Folders that Unity includes in builds with debugging or other information that isn't intended to be sent to players:
*_BurstDebugInformation_DoNotShip*_BackUpThisFolder_ButDontShipItWithYourGame
Ähnliche Projekte entdecken
Wird geladen…