diff --git a/.gitignore b/.gitignore index 485dee6..eb5e430 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .idea +build_output.log diff --git a/action.yml b/action.yml index 2d35855..daf922f 100644 --- a/action.yml +++ b/action.yml @@ -92,6 +92,8 @@ inputs: outputs: manifest: description: "The path to the generated manifest.vdf" + buildId: + description: "The Steam BuildID of the uploaded build" runs: using: "docker" image: Dockerfile diff --git a/steam_deploy.sh b/steam_deploy.sh index 8ba01f0..ea7c530 100755 --- a/steam_deploy.sh +++ b/steam_deploy.sh @@ -164,7 +164,7 @@ echo "# Uploading build #" echo "#################################" echo "" -steamcmd +login "$steam_username" +run_app_build "$manifest_path" +quit || ( +steamcmd +login "$steam_username" +run_app_build "$manifest_path" +quit | tee build_output.log || ( echo "" echo "#################################" echo "# Errors #" @@ -212,4 +212,7 @@ steamcmd +login "$steam_username" +run_app_build "$manifest_path" +quit || ( exit 1 ) +buildId=$(grep -oP '\(BuildID \K\d+(?=\))' build_output.log || echo "") + echo "manifest=${manifest_path}" >> $GITHUB_OUTPUT +echo "buildId=${buildId}" >> $GITHUB_OUTPUT