diff --git a/.gitea/workflows/godot-ci.yml b/.gitea/workflows/godot-ci.yml index 77ab4d6..96f0119 100644 --- a/.gitea/workflows/godot-ci.yml +++ b/.gitea/workflows/godot-ci.yml @@ -148,13 +148,29 @@ jobs: - name: Publish to Steam run: | cd $PROJECT_PATH - /home/steam/steamcmd/steamcmd.sh +set_steam_guard_code "${{ secrets.STEAM_GUARD_CODE }}" +login "${{ vars.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +run_app_build "$PWD/build/build_dependencies/steam/app_build_2739610.vdf" +quit + # First, try to login without Steam Guard to check if we have cached auth + /home/steam/steamcmd/steamcmd.sh +login "${{ vars.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +quit || echo "Login failed, trying with Steam Guard" + + # If that fails, login with Steam Guard code + /home/steam/steamcmd/steamcmd.sh +set_steam_guard_code "${{ secrets.STEAM_GUARD_CODE }}" +login "${{ vars.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +quit + + # Now run the actual build + /home/steam/steamcmd/steamcmd.sh +login "${{ vars.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +run_app_build "$PWD/build/build_dependencies/steam/app_build_2739610.vdf" +quit - name: Write Cache run: | mkdir -p ./steam_cache + + # Debug: Show all files in Steam directory + echo "All files in /home/steam/Steam:" + find /home/steam/Steam -type f -name "*" 2>/dev/null | head -20 + + # Copy config file cp /home/steam/Steam/config/config.vdf ./steam_cache/ 2>/dev/null || echo "No config file to cache" - cp /home/steam/Steam/ssfn* ./steam_cache/ 2>/dev/null || echo "No sentry files to cache" - + + # Look for sentry files in various locations + cp /home/steam/Steam/ssfn* ./steam_cache/ 2>/dev/null || echo "No sentry files in /home/steam/Steam/" + cp /home/steam/Steam/config/ssfn* ./steam_cache/ 2>/dev/null || echo "No sentry files in /home/steam/Steam/config/" + echo "Files cached:" ls -la ./steam_cache/ 2>/dev/null || echo "No cache directory" \ No newline at end of file