game-ci / steam-deploy

Github Action to deploy a game to Steam
MIT License
227 stars 63 forks source link

Authentication #16

Closed davidmfinol closed 2 years ago

davidmfinol commented 2 years ago

It took a while, but I finally got a successful run: https://github.com/finol-digital/Card-Game-Simulator/actions/runs/1520058393

And I verified it in my dashboard: image

I tried to simplify everything as much as possible, to the point where most of the logic is now in a single steam_deploy.sh script. Maybe in the future we can refactor steam_deploy.sh to use TypeScript, but I'm actually also OK with just keeping this single bash script for now, as it's not too complicated.

In my attempt to simplify as much as possible, I removed the localContentServer input, since I didn't understand it. Maybe we need to add that back in later? Maybe the switch to TypeScript could happen when we try to add more advanced features like that one.

I also removed the mfaCode input, which will break the action for anyone who is using it together with the CyberAndrii/steam-totp action. Maybe we should add an extra feature in the future to support steam-totp, but I also think it's fine to break that workflow for now since we're still on v0.

I also tried to update the documentation in the README as best I could. Please let me know if there's anything there that could be further clarified. I'm thinking we can also add a page to the game.ci docs under Docs/Github/Deployment/Steam, probably after we feel comfortable with releasing v1 of this action.

Final thought: Do we have a Steamworks account + App ID that we could use exclusively for testing this action? I accidently paid the Steam Direct Fee twice, so I have an extra app credit and could create an app id for this purpose. However, the App ID would then be tied to my Steamworks account, and I think it may be better to have a dedicated GameCI Steamworks account? I ask because I'd like to get the .github/workflows/main.yml workflow running and passing to validate future changes.

davidmfinol commented 2 years ago

Changed to draft, since I found that even though the build uploaded OK and it showed all the depots, the depots themselves were empty: image

I'm not sure why the depots would be empty. I did ls right before the steam-deploy action, and I see that the build files are in the correct location. The logs also show the generated .vdf files, and they seem correct. The .vdf files must be at least partially correct, since Steam clearly did upload some data to my account.

Maybe the issue is with the content root in the app manifest file? It shows as /home/runner/work/Card-Game-Simulator/Card-Game-Simulator (missing /build), which might be overriding the value of content root in the depot manifest files?

At the same time, the second depot (for one that is for Linux) is actually not empty. It has a single file, which looks like the file that is supposed to be the main executable. I can't think of any reason why only this singular file would be successfully uploaded, while nothing else is. Could it be something like a permissions issue, where maybe this file had extra permissions allowed that none of the other files had?

Any other thoughts? I'm pausing for now, but will probably try again later.

EDIT: The fact that the name of the file that was uploaded was the same as the folder that it was in clued me in to the fact that the issue was with some combination of contentroot and LocalPath. I've got it working now, so marking this as ready for review.

davidmfinol commented 2 years ago

The actually successful run: https://github.com/finol-digital/Card-Game-Simulator/actions/runs/1536757557

And this time I actually confirmed that the depots actually have content: image

bilalakil commented 2 years ago

I'm not 100% sure I did everything correctly but I tried to follow the steps today and it didn't work. This repo's builds are also currently failing with the same error. Is this all still valid?

EDIT: Just ran through everything again and I can't see anything I'm doing wrong. I'm running on Windows and used this method to obtain base64 text for config.vdf and the SSFN files: [Convert]::ToBase64String([IO.File]::ReadAllBytes($FileName))

I've made a little test job just to exercise things directly:

name: Test Steamworks invocation
on:
  workflow_dispatch: {}
jobs:
  steamTest:
    name: Test Steamworks invocation
    runs-on: ubuntu-latest
    steps:
      - uses: game-ci/steam-deploy@06c5ff86570260a67ba2fd99739a3379bd60e5ed
        with:
          username: ${{ secrets.STEAM_BUILD_ACCOUNT_USERNAME }}
          password: ${{ secrets.STEAM_BUILD_ACCOUNT_PASSWORD }}
          configVdf: ${{ secrets.STEAM_BUILD_ACCOUNT_CONFIG_VDF }}
          ssfnFileName: ${{ secrets.STEAM_BUILD_ACCOUNT_SSFN_FILE_NAME }}
          ssfnFileContents: ${{ secrets.STEAM_BUILD_ACCOUNT_SSFN_FILE_CONTENTS }}
          appId: 250
          buildDescription: This should fail
          rootPath: build
          depot1Path: StandaloneWindows64
          releaseBranch: default

And here's the logs dumped:

Run game-ci/steam-deploy@06c5ff86570260a67ba2fd99739a3379bd60e5ed
  with:
    username: ***
    password: ***
    configVdf: ***
    ssfnFileName: ***
    ssfnFileContents: ***
    appId: 250
    buildDescription: This should fail
    rootPath: build
    depot1Path: StandaloneWindows64
    releaseBranch: default
Run CyberAndrii/setup-steamcmd@v1.1.1
Downloading ...
Extracting ...
/usr/bin/tar xz --warning=no-unknown-keyword -C steamcmd -f /home/runner/work/_temp/07ff589b-db22-43b8-8077-7cd74a3d25c0
Adding to the cache ...
Installing required dependencies ...
/usr/bin/sudo apt-get --yes update
Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:5 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Hit:6 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
Get:7 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1400 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.7 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [884 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [19.9 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1069 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [9096 B]
Get:13 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [668 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [13.0 kB]
Fetched 4413 kB in 1s (3952 kB/s)
Reading package lists...
/usr/bin/sudo apt-get --yes install lib32gcc1
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  lib32gcc-s1
The following NEW packages will be installed:
  lib32gcc1
The following packages will be upgraded:
  lib32gcc-s1
1 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 50.8 kB of archives.
After this operation, 6144 B of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal/main amd64 lib32gcc-s1 amd64 11.1.0-1ubuntu1~20.04 [49.6 kB]
Get:2 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal/main amd64 lib32gcc1 amd64 1:11.1.0-1ubuntu1~20.04 [1136 B]
Fetched 50.8 kB in 1s (87.9 kB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 234562 files and directories currently installed.)
Preparing to unpack .../lib32gcc-s1_11.1.0-1ubuntu1~20.04_amd64.deb ...
Unpacking lib32gcc-s1 (11.1.0-1ubuntu1~20.04) over (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../lib32gcc1_1%3a11.1.0-1ubuntu1~20.04_amd64.deb ...
Unpacking lib32gcc1 (1:11.1.0-1ubuntu1~20.04) ...
Setting up lib32gcc-s1 (11.1.0-1ubuntu1~20.04) ...
Setting up lib32gcc1 (1:11.1.0-1ubuntu1~20.04) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Updating ...
/opt/hostedtoolcache/steamcmd/latest/i386/steamcmd.sh +quit
Redirecting stderr to '/home/runner/Steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[  0%] Checking for available update...
[----] Downloading update (0 of 53841 KB)...
[  0%] Downloading update (3146 of 53841 KB)...
[  5%] Downloading update (7022 of 53841 KB)...
[ 13%] Downloading update (9543 of 53841 KB)...
[ 17%] Downloading update (12313 of 53841 KB)...
[ 22%] Downloading update (14808 of 53841 KB)...
[ 27%] Downloading update (17268 of 53841 KB)...
[ 32%] Downloading update (19737 of 53841 KB)...
[ 36%] Downloading update (22471 of 53841 KB)...
[ 41%] Downloading update (24938 of 53841 KB)...
[ 46%] Downloading update (27394 of 53841 KB)...
[ 50%] Downloading update (29881 of 53841 KB)...
[ 55%] Downloading update (32625 of 53841 KB)...
[ 60%] Downloading update (34986 of 53841 KB)...
[ 64%] Downloading update (36345 of 53841 KB)...
[ 67%] Downloading update (37582 of 53841 KB)...
[ 69%] Downloading update (38814 of 53841 KB)...
[ 72%] Downloading update (40184 of 53841 KB)...
[ 74%] Downloading update (41414 of 53841 KB)...
[ 76%] Downloading update (42662 of 53841 KB)...
[ 79%] Downloading update (43896 of 53841 KB)...
[ 81%] Downloading update (45271 of 53841 KB)...
[ 84%] Downloading update (46518 of 53841 KB)...
[ 86%] Downloading update (47742 of 53841 KB)...
[ 88%] Downloading update (49098 of 53841 KB)...
[ 91%] Downloading update (50307 of 53841 KB)...
[ 93%] Downloading update (51562 of 53841 KB)...
[ 95%] Downloading update (52943 of 53841 KB)...
[ 98%] Downloading update (53841 of 53841 KB)...
[100%] Download Complete.
[----] Applying update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching...
Redirecting stderr to '/home/runner/Steam/logs/stderr.txt'
/tmp/dumps insufficient permissions - delete and recreate
[  0%] Checking for available updates...
[----] Verifying installation...
[  0%] Downloading update...
[  0%] Checking for available updates...
[----] Download complete.
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
Redirecting stderr to '/home/runner/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1639697740
-- type 'quit' to exit --
Loading Steam API...OK
Done
Run chmod +x /home/runner/work/_actions/game-ci/steam-deploy/06c5ff86570260a67ba2fd99739a3379bd60e5ed/steam_deploy.sh
  chmod +x /home/runner/work/_actions/game-ci/steam-deploy/06c5ff86570260a67ba2fd99739a3379bd60e5ed/steam_deploy.sh
  /home/runner/work/_actions/game-ci/steam-deploy/06c5ff86570260a67ba2fd99739a3379bd60e5ed/steam_deploy.sh
  echo "::set-output name=manifest::$(pwd)/manifest.vdf"
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    STEAM_HOME: /opt/hostedtoolcache/steamcmd/latest/i386
    STEAM_CMD: /opt/hostedtoolcache/steamcmd/latest/i386/steamcmd.sh
    username: ***
    password: ***
    configVdf: ***
    ssfnFileName: ***
    ssfnFileContents: ***
    appId: 250
    buildDescription: This should fail
    rootPath: build
    depot1Path: StandaloneWindows64
    depot2Path: 
    depot3Path: 
    depot4Path: 
    depot5Path: 
    depot6Path: 
    depot7Path: 
    depot8Path: 
    depot9Path: 
    releaseBranch: default

#################################
#   Generating Depot Manifests  #
#################################

Adding depot251.vdf ...

"DepotBuildConfig"
{
  "DepotID" "251"
  "FileMapping"
  {
    "LocalPath" "./StandaloneWindows64/*"
    "DepotPath" "."
    "recursive" "1"
  }
  "FileExclusion" "*.pdb"
}

#################################
#    Generating App Manifest    #
#################################

"appbuild"
{
  "appid" "250"
  "desc" "This should fail"
  "buildoutput" "BuildOutput"
  "contentroot" "/home/runner/work/frankenstorm/frankenstorm/build"
  "setlive" "default"

  "depots"
  {
    "251" "depot251.vdf"
  }
}

#################################
#    Copying SteamGuard Files   #
#################################

Copying /opt/hostedtoolcache/steamcmd/latest/i386/config/config.vdf...
Copying /home/runner/Steam/config/config.vdf...
Copying /opt/hostedtoolcache/steamcmd/latest/i386/ssfn...
Copying /home/runner/Steam/ssfn...
Finished Copying SteamGuard Files!

#################################
#        Uploading build        #
#################################

Redirecting stderr to '/home/runner/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1639697740
-- type 'quit' to exit --
Loading Steam API...src/vstdlib/keyvaluessystem.cpp (320) : Assertion Failed: CKeyValuesSystem::AddStringToPool: key name too long (13499 chars)
KeyValues Error: LoadFromBuffer: missing {   (current key: '') in file InstallConfigStore [offset: 13499]

src/tier1/KeyValues.cpp (2967) : Assertion Failed: Error while parsing text KeyValues for resource InstallConfigStore
src/vstdlib/keyvaluessystem.cpp (320) : Assertion Failed: CKeyValuesSystem::AddStringToPool: key name too long (13499 chars)
KeyValues Error: LoadFromBuffer: missing {   (current key: '') in file InstallConfigStore [offset: 13499]

src/tier1/KeyValues.cpp (2967) : Assertion Failed: Error while parsing text KeyValues for resource InstallConfigStore
OK
Logging in user '***' to Steam Public...src/vstdlib/keyvaluessystem.cpp (320) : Assertion Failed: CKeyValuesSystem::AddStringToPool: key name too long (13499 chars)
KeyValues Error: LoadFromBuffer: missing {   (current key: '') in file InstallConfigStore [offset: 13499]

src/tier1/KeyValues.cpp (2967) : Assertion Failed: Error while parsing text KeyValues for resource InstallConfigStore

This computer has not been authenticated for your account using Steam Guard.
Please check your email for the message from Steam, and enter the Steam Guard
 code from that message.
You can also enter this code at any time using 'set_steam_guard_code'
 at the console.
Steam Guard code:FAILED (Account Logon Denied)

#################################
#             Errors            #
#################################

Listing current folder and rootpath

total 24K
drwxr-xr-x 4 runner docker 4.0K Dec 22 07:54 .
drwxr-xr-x 3 runner docker 4.0K Dec 22 07:53 ..
drwxr-xr-x 2 runner docker 4.0K Dec 22 07:54 BuildOutput
-rw-r--r-- 1 runner docker  173 Dec 22 07:54 depot251.vdf
-rw-r--r-- 1 runner docker  224 Dec 22 07:54 manifest.vdf
drwxr-xr-x 3 runner docker 4.0K Dec 22 07:53 steamcmd

ls: cannot access 'build': No such file or directory

Listing logs folder:

/home/runner/Steam/logs/:
total 36K
drwxr-xr-x 2 runner docker 4.0K Dec 22 07:54 ./
drwxr-xr-x 5 runner docker 4.0K Dec 22 07:54 ../
-rwxr-xr-x 1 runner docker 6.8K Dec 22 07:54 bootstrap_log.txt
-rwxr-xr-x 1 runner docker  776 Dec 22 07:54 configstore_log.txt
-rwxr-xr-x 1 runner docker 3.3K Dec 22 07:54 connection_log.txt
-rwxr-xr-x 1 runner docker  156 Dec 22 07:54 shader_log.txt
-rw-r--r-- 1 runner docker 1.3K Dec 22 07:54 stderr.txt
-rwxr-xr-x 1 runner docker  288 Dec 22 07:54 systemmanager.txt

Displaying error log

CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
src/vstdlib/keyvaluessystem.cpp (320) : Assertion Failed: CKeyValuesSystem::AddStringToPool: key name too long (13499 chars)
assert_20211222075434_11.dmp[2367]: Uploading dump (out-of-process)
/tmp/dumps/assert_20211222075434_11.dmp
src/tier1/KeyValues.cpp (2967) : Assertion Failed: Error while parsing text KeyValues for resource InstallConfigStore
assert_20211222075434_11.dmp[2367]: Finished uploading minidump (out-of-process): success = no
assert_20211222075434_11.dmp[2367]: error: libcurl.so: cannot open shared object file: No such file or directory
src/vstdlib/keyvaluessystem.cpp (320) : Assertion Failed: CKeyValuesSystem::AddStringToPool: key name too long (13499 chars)
src/tier1/KeyValues.cpp (2967) : Assertion Failed: Error while parsing text KeyValues for resource InstallConfigStore
assert_20211222075434_11.dmp[2367]: file ''/tmp/dumps/assert_20211222075434_11.dmp'', upload no: ''libcurl.so: cannot open shared object file: No such file or directory''
src/vstdlib/keyvaluessystem.cpp (320) : Assertion Failed: CKeyValuesSystem::AddStringToPool: key name too long (13499 chars)
src/tier1/KeyValues.cpp (2967) : Assertion Failed: Error while parsing text KeyValues for resource InstallConfigStore

Displaying bootstrapper log

[2021-12-22 07:54:06] Startup - updater built Dec 13 2017 05:27:43
[2021-12-22 07:54:06] Checking for update on startup
[2021-12-22 07:54:06] Checking for available update...
[2021-12-22 07:54:07] Package file steamcmd_public_all.zip.318d008a002b0b7d76e770b6313ddb942166f70f missing or incorrect size
[2021-12-22 07:54:07] Package file steamcmd_bins_linux.zip.vz.a918d52e0deee03c4f626691b3ce576a8e8687c2_16448501 missing or incorrect size
[2021-12-22 07:54:07] Package file steamcmd_siteserverui_linux.zip.vz.b12869011e7ed098aebce590e247fbb4f766283c_36440310 missing or incorrect size
[2021-12-22 07:54:07] Package file steamcmd_linux.zip.vz.804109efe8f8ae1b394020228950b9fa94fc2669_2195299 missing or incorrect size
[2021-12-22 07:54:07] Downloading update (0 of 53841 KB)...
[2021-12-22 07:54:07] Downloading update (3146 of 53841 KB)...
[2021-12-22 07:54:07] Downloading update (7022 of 53841 KB)...
[2021-12-22 07:54:08] Downloading update (9543 of 53841 KB)...
[2021-12-22 07:54:08] Downloading update (12313 of 53841 KB)...
[2021-12-22 07:54:08] Downloading update (14808 of 53841 KB)...
[2021-12-22 07:54:08] Downloading update (17268 of 53841 KB)...
[2021-12-22 07:54:09] Downloading update (19737 of 53841 KB)...
[2021-12-22 07:54:09] Downloading update (22471 of 53841 KB)...
[2021-12-22 07:54:09] Downloading update (24938 of 53841 KB)...
[2021-12-22 07:54:09] Downloading update (27394 of 53841 KB)...
[2021-12-22 07:54:10] Downloading update (29881 of 53841 KB)...
[2021-12-22 07:54:10] Downloading update (32625 of 53841 KB)...
[2021-12-22 07:54:10] Downloading update (34986 of 53841 KB)...
[2021-12-22 07:54:11] Downloading update (36345 of 53841 KB)...
[2021-12-22 07:54:11] Downloading update (37582 of 53841 KB)...
[2021-12-22 07:54:11] Downloading update (38814 of 53841 KB)...
[2021-12-22 07:54:11] Downloading update (40184 of 53841 KB)...
[2021-12-22 07:54:12] Downloading update (41414 of 53841 KB)...
[2021-12-22 07:54:12] Downloading update (42662 of 53841 KB)...
[2021-12-22 07:54:12] Downloading update (43896 of 53841 KB)...
[2021-12-22 07:54:12] Downloading update (45271 of 53841 KB)...
[2021-12-22 07:54:13] Downloading update (46518 of 53841 KB)...
[2021-12-22 07:54:13] Downloading update (47742 of 53841 KB)...
[2021-12-22 07:54:13] Downloading update (49098 of 53841 KB)...
[2021-12-22 07:54:13] Downloading update (50307 of 53841 KB)...
[2021-12-22 07:54:14] Downloading update (51562 of 53841 KB)...
[2021-12-22 07:54:14] Downloading update (52943 of 53841 KB)...
[2021-12-22 07:54:14] Downloading update (53841 of 53841 KB)...
[2021-12-22 07:54:14] Download Complete.
[2021-12-22 07:54:14] uninstalled manifest found in /opt/hostedtoolcache/steamcmd/latest/i386/package/steam_cmd_linux (1).
[2021-12-22 07:54:14] Found pending update
[2021-12-22 07:54:14] Applying update...
[2021-12-22 07:54:14] Extracting package...
[2021-12-22 07:54:20] Installing update...
[2021-12-22 07:54:20] Cleaning up...
[2021-12-22 07:54:20] Update complete, launching...
[2021-12-22 07:54:20] Shutdown

[2021-12-22 07:54:21] Startup - updater built Dec 13 2021 23:06:06
[2021-12-22 07:54:21] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2021-12-22 07:54:21] Using the following download hosts for Public, Realm steamglobal
[2021-12-22 07:54:21] 1. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2021-12-22 07:54:21] Checking for update on startup
[2021-12-22 07:54:21] Checking for available updates...
[2021-12-22 07:54:21] Downloading manifest: http://media.steampowered.com/client/steam_cmd_linux
[2021-12-22 07:54:21] Download skipped: /client/steam_cmd_linux version 1639697740, installed version 1639697740, existing pending version 0
[2021-12-22 07:54:21] Nothing to do
[2021-12-22 07:54:21] Verifying installation...
[2021-12-22 07:54:21] Performing checksum verification of executable files
[2021-12-22 07:54:21] Unable to read and verify install manifest /opt/hostedtoolcache/steamcmd/latest/i386/package/steam_cmd_linux.installed
[2021-12-22 07:54:21] Verification complete
[2021-12-22 07:54:21] Downloading update...
[2021-12-22 07:54:21] Checking for available updates...
[2021-12-22 07:54:21] Downloading manifest: http://media.steampowered.com/client/steam_cmd_linux
[2021-12-22 07:54:21] Downloaded new manifest: /client/steam_cmd_linux version 1639697740, installed version 1639697740, existing pending version 0
[2021-12-22 07:54:21] Download complete.
[2021-12-22 07:54:21] uninstalled manifest found in /opt/hostedtoolcache/steamcmd/latest/i386/package/steam_cmd_linux (1).
[2021-12-22 07:54:21] Extracting package...
[2021-12-22 07:54:27] Installing update...
[2021-12-22 07:54:27] Cleaning up...
[2021-12-22 07:54:27] Update complete, launching Steamcmd...
[2021-12-22 07:54:27] Shutdown

[2021-12-22 07:54:28] Startup - updater built Dec 13 2021 23:06:06
[2021-12-22 07:54:28] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2021-12-22 07:54:28] Using the following download hosts for Public, Realm steamglobal
[2021-12-22 07:54:28] 1. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2021-12-22 07:54:28] Checking for update on startup
[2021-12-22 07:54:28] Checking for available updates...
[2021-12-22 07:54:28] Downloading manifest: http://media.steampowered.com/client/steam_cmd_linux
[2021-12-22 07:54:28] Download skipped: /client/steam_cmd_linux version 1639697740, installed version 1639697740, existing pending version 0
[2021-12-22 07:54:28] Nothing to do
[2021-12-22 07:54:28] Verifying installation...
[2021-12-22 07:54:28] Performing checksum verification of executable files
[2021-12-22 07:54:28] Verification complete
[2021-12-22 07:54:29] Shutdown

[2021-12-22 07:54:33] Startup - updater built Dec 13 2021 23:06:06
[2021-12-22 07:54:33] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2021-12-22 07:54:33] Using the following download hosts for Public, Realm steamglobal
[2021-12-22 07:54:33] 1. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2021-12-22 07:54:33] Checking for update on startup
[2021-12-22 07:54:33] Checking for available updates...
[2021-12-22 07:54:33] Downloading manifest: http://media.steampowered.com/client/steam_cmd_linux
[2021-12-22 07:54:33] Download skipped: /client/steam_cmd_linux version 1639697740, installed version 1639697740, existing pending version 0
[2021-12-22 07:54:33] Nothing to do
[2021-12-22 07:54:33] Verifying installation...
[2021-12-22 07:54:33] Performing checksum verification of executable files
[2021-12-22 07:54:34] Verification complete
[2021-12-22 07:54:35] Shutdown

#################################
#             Output            #
#################################

BuildOutput:
total 8.0K
drwxr-xr-x 2 runner docker 4.0K Dec 22 07:54 ./
drwxr-xr-x 4 runner docker 4.0K Dec 22 07:54 ../
Error: Process completed with exit code 1.
davidmfinol commented 2 years ago

I use this action to deploy my personal project to Steam, and it worked fine in this run yesterday (ignore the unrelated iOS App Store deployment error): https://github.com/finol-digital/Card-Game-Simulator/actions/runs/1606375326

The test workflows in this repo fail because we don't have an account set up to test them. See the related issue: https://github.com/game-ci/steam-deploy/issues/18

That said, thanks for raising this issue. I see where I went wrong in the docs. There are actually 2 ssfn files, and I suspect that you may have copied the non-hidden one, where the correct file is actually a hidden file: https://gaming.stackexchange.com/questions/240073/where-is-the-steam-authorization-file

I'll update the docs later, but in the meantime, can you check if you are using the hidden ssfn file instead of the non-hidden one?

bilalakil commented 2 years ago

That fixed it, thanks! Yeah good idea to update the docs, I had no idea to look for a hidden file.

Although I reached a new problem where the action failed even though the build was uploaded - but it wasn't set live on the default branch. I guess I'll pop a new issue for that tomorrow if I don't figure anything out.

webbertakken commented 2 years ago

Great! glad that worked for you. A separate issue for that other problem sounds fine indeed.

Also feel free to help the community update the documentation if you see something is missing.

davidmfinol commented 2 years ago

it wasn't set live on the default branch

I'd highly recommend using a prerelease branch to set live. Then you can do a quick sanity check on the Steam Partnerworks website to confirm the upload was good before setting live on the default branch.

bilalakil commented 2 years ago

I understand that that's the recommendation. In this circumstance I'm actually deploying to the demo version of the game - production will be behind a manual trigger

bilalakil commented 2 years ago

Also feel free to help the community update the documentation if you see something is missing.

I wouldn't mind updating the documentation but I'm worried that I don't understand the situation well enough.

It's hidden on Windows and that's enough to differentiate between which of the two ssfn files to use, but what about Mac and Linux? Does the hidden one have . as the first character in its name on those systems?

davidmfinol commented 2 years ago

Those are good questions, but I don't know the answers to them either. I figure we should document what we do know, and then fill in the gaps as we find them.

webbertakken commented 2 years ago

Agreed. Most every iteration is a step forward.