diff --git a/README.md b/README.md index 76bad6a..edfd766 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,10 @@ jobs: 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. diff --git a/action.yml b/action.yml index bdd0501..2d35855 100644 --- a/action.yml +++ b/action.yml @@ -6,6 +6,9 @@ inputs: required: true default: '' description: 'The username of your builder account.' + password: + required: false + description: 'The password of your builder account. Required if `totp` is set.' totp: required: false description: 'The TOTP to use for login. If set, `configVdf` will be ignored.' @@ -94,6 +97,7 @@ runs: image: Dockerfile env: steam_username: ${{ inputs.username }} + steam_password: ${{ inputs.password }} steam_totp: ${{ inputs.totp }} configVdf: ${{ inputs.configVdf }} appId: ${{ inputs.appId }} diff --git a/steam_deploy.sh b/steam_deploy.sh index d4ec8f0..8ba01f0 100755 --- a/steam_deploy.sh +++ b/steam_deploy.sh @@ -138,7 +138,7 @@ echo "# Test login #" echo "#################################" echo "" -steamcmd +set_steam_guard_code "$steam_totp" +login "$steam_username" +quit; +steamcmd +set_steam_guard_code "$steam_totp" +login "$steam_username" "$steam_password" +quit; ret=$? if [ $ret -eq 0 ]; then