Skip to content

Commit

Permalink
Merge github.com:game-ci/steam-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
stalkerg committed Dec 1, 2024
2 parents 3270cf1 + 71030af commit a00039e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM steamcmd/steamcmd:latest
FROM steamcmd/steamcmd:ubuntu-22
COPY steam_deploy.sh /root/steam_deploy.sh
ENTRYPOINT ["/root/steam_deploy.sh"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
buildDescription: v1.2.3
rootPath: build
depot1Path: StandaloneWindows64
depot1InstallScriptPath: StandaloneWindows64/install_script.vdf
depot2Path: StandaloneLinux64
releaseBranch: prerelease
```
Expand Down Expand Up @@ -93,6 +94,7 @@ However, it is possible to go through the MFA process only once by setting up Gi
1. Try to login with `steamcmd +login <username> <password> +quit`, which may prompt for the MFA code. If so, type in the MFA code that was emailed to your builder account's email address.
1. Validate that the MFA process is complete by running `steamcmd +login <username> +quit` again. It should not ask for the MFA code again.
1. The folder from which you run `steamcmd` will now contain an updated `config/config.vdf` file. Use `cat config/config.vdf | base64 > config_base64.txt` to encode the file. Copy the contents of `config_base64.txt` to a GitHub Secret `STEAM_CONFIG_VDF`.
- macOS: `cat ~/Library/Application\ Support/Steam/config/config.vdf | base64 > config_base64.txt`
1. `If:` when running the action you recieve another MFA code via email, run `steamcmd +set_steam_guard_code <code>` on your local machine and repeat the `config.vdf` encoding and replace secret `STEAM_CONFIG_VDF` with its contents.

#### appId
Expand Down
36 changes: 36 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,57 @@ inputs:
depot1Path:
required: false
description: 'The path to depot1.'
depot1InstallScriptPath:
required: false
description: 'The path to the install script for depot1.'
depot2Path:
required: false
description: 'The path to depot2.'
depot2InstallScriptPath:
required: false
description: 'The path to the install script for depot2.'
depot3Path:
required: false
description: 'The path to depot3.'
depot3InstallScriptPath:
required: false
description: 'The path to the install script for depot3.'
depot4Path:
required: false
description: 'The path to depot4.'
depot4InstallScriptPath:
required: false
description: 'The path to the install script for depot4.'
depot5Path:
required: false
description: 'The path to depot5.'
depot5InstallScriptPath:
required: false
description: 'The path to the install script for depot5.'
depot6Path:
required: false
description: 'The path to depot6.'
depot6InstallScriptPath:
required: false
description: 'The path to the install script for depot6.'
depot7Path:
required: false
description: 'The path to depot7.'
depot7InstallScriptPath:
required: false
description: 'The path to the install script for depot7.'
depot8Path:
required: false
description: 'The path to depot8.'
depot8InstallScriptPath:
required: false
description: 'The path to the install script for depot8.'
depot9Path:
required: false
description: 'The path to depot9.'
depot9InstallScriptPath:
required: false
description: 'The path to the install script for depot9.'
releaseBranch:
required: false
description: 'The branch within steam that this build will be automatically put live on.'
Expand All @@ -78,12 +105,21 @@ runs:
customDepot: ${{ inputs.customDepot }}
customDepotId: ${{ inputs.customDepotId }}
depot1Path: ${{ inputs.depot1Path }}
depot1InstallScriptPath: ${{ inputs.depot1InstallScriptPath }}
depot2Path: ${{ inputs.depot2Path }}
depot2InstallScriptPath: ${{ inputs.depot2InstallScriptPath }}
depot3Path: ${{ inputs.depot3Path }}
depot3InstallScriptPath: ${{ inputs.depot3InstallScriptPath }}
depot4Path: ${{ inputs.depot4Path }}
depot4InstallScriptPath: ${{ inputs.depot4InstallScriptPath }}
depot5Path: ${{ inputs.depot5Path }}
depot5InstallScriptPath: ${{ inputs.depot5InstallScriptPath }}
depot6Path: ${{ inputs.depot6Path }}
depot6InstallScriptPath: ${{ inputs.depot6InstallScriptPath }}
depot7Path: ${{ inputs.depot7Path }}
depot7InstallScriptPath: ${{ inputs.depot7InstallScriptPath }}
depot8Path: ${{ inputs.depot8Path }}
depot8InstallScriptPath: ${{ inputs.depot8InstallScriptPath }}
depot9Path: ${{ inputs.depot9Path }}
depot9InstallScriptPath: ${{ inputs.depot9InstallScriptPath }}
releaseBranch: ${{ inputs.releaseBranch }}
37 changes: 1 addition & 36 deletions steam_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,6 @@ else
firstDepotId=$((appId + 1))
fi

i=1;
# export DEPOTS="\n "
# until [ $i -gt 9 ]; do
# eval "currentDepotPath=\$depot${i}Path"
# if [ -n "$currentDepotPath" ]; then
# # depot1Path uses firstDepotId, depot2Path uses firstDepotId + 1, depot3Path uses firstDepotId + 2...
# currentDepot=$((firstDepotId + i - 1))

# echo ""
# echo "Adding depot${currentDepot}.vdf ..."
# echo ""
# export DEPOTS="$DEPOTS \"$currentDepot\" \"depot${currentDepot}.vdf\"\n "
# cat << EOF > "depot${currentDepot}.vdf"
# "DepotBuildConfig"
# {
# "DepotID" "$currentDepot"
# "FileMapping"
# {
# "LocalPath" "./$currentDepotPath/*"
# "DepotPath" "."
# "recursive" "1"
# }
# "FileExclusion" "*.pdb"
# "FileExclusion" "**/*_BurstDebugInformation_DoNotShip*"
# "FileExclusion" "**/*_BackUpThisFolder_ButDontShipItWithYourGame*"
# }
# EOF

# cat depot${currentDepot}.vdf
# echo ""
# fi;

# i=$((i+1))
# done

echo ""
echo "#################################"
echo "# Generating App Manifest #"
Expand Down Expand Up @@ -95,7 +60,7 @@ if [ -n "$steam_totp" ]; then
echo "# Using SteamGuard TOTP #"
echo "#################################"
echo ""
else
else
if [ ! -n "$configVdf" ]; then
echo "Config VDF input is missing or incomplete! Cannot proceed."
exit 1
Expand Down

0 comments on commit a00039e

Please sign in to comment.