fix steam token getting reset
This commit is contained in:
parent
36441687ff
commit
43e37679ed
1 changed files with 8 additions and 5 deletions
|
|
@ -20,8 +20,9 @@ jobs:
|
||||||
runs-on: s2-runner
|
runs-on: s2-runner
|
||||||
env:
|
env:
|
||||||
GAME: ${{ github.event.inputs.game }}
|
GAME: ${{ github.event.inputs.game }}
|
||||||
STEAM_APPS: /home/cs2/.steam/SteamApps
|
|
||||||
STEAM_USER: source2rosetta
|
STEAM_USER: source2rosetta
|
||||||
|
STEAM_HOME_ANON: /home/cs2
|
||||||
|
STEAM_HOME_AUTH: /home/cs2/steam-auth
|
||||||
RELEASE_BASE: ${{ github.server_url }}/${{ github.repository }}/releases/download
|
RELEASE_BASE: ${{ github.server_url }}/${{ github.repository }}/releases/download
|
||||||
OVERRIDE_DIR: /home/cs2/rosetta-override
|
OVERRIDE_DIR: /home/cs2/rosetta-override
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -30,12 +31,14 @@ jobs:
|
||||||
- name: Update the install to the current build
|
- name: Update the install to the current build
|
||||||
run: |
|
run: |
|
||||||
case "$GAME" in
|
case "$GAME" in
|
||||||
cs2) APPID=730 ;;
|
cs2) APPID=730; LOGIN=anonymous; STEAM_HOME="$STEAM_HOME_ANON" ;;
|
||||||
dota2) APPID=570 ;;
|
dota2) APPID=570; LOGIN="$STEAM_USER"; STEAM_HOME="$STEAM_HOME_AUTH" ;;
|
||||||
*) echo "unknown game '$GAME' (expected cs2 or dota2)"; exit 1 ;;
|
*) echo "unknown game '$GAME' (expected cs2 or dota2)"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
echo "APPID=$APPID" >> "$GITHUB_ENV"
|
STEAM_APPS="$STEAM_HOME/.steam/SteamApps"
|
||||||
steamcmd +login "$STEAM_USER" +app_update "$APPID" +quit
|
{ echo "APPID=$APPID"; echo "STEAM_APPS=$STEAM_APPS"; } >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
env HOME="$STEAM_HOME" steamcmd +login "$LOGIN" +app_update "$APPID" +quit
|
||||||
|
|
||||||
- name: Resolve the game paths + the new buildid
|
- name: Resolve the game paths + the new buildid
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue