Skip to content

Commit

Permalink
log into steam
Browse files Browse the repository at this point in the history
  • Loading branch information
pnxenopoulos committed Jan 13, 2025
1 parent 1d8ca33 commit 153a29e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/source-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ env:
SOURCE2_VERSION: 11.1
SOURCE2_VIEWER_URL: https://github.com/ValveResourceFormat/ValveResourceFormat/releases/download/11.1/cli-windows-x64.zip
PYTHON_VERSION: 3.13
STEAMCMD_URL: https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
CS2_APP_ID: 730
CS2_INSTALL_DIR: ${{ github.workspace }}/cs2

on:
pull_request:
Expand Down Expand Up @@ -35,6 +38,22 @@ jobs:
uv sync --group dev --group test
uv tool install .
- name: Install SteamCMD
run: |
curl -sSL ${{ env.STEAMCMD_URL }} -o steamcmd.zip
tar -xf steamcmd.zip -C ${{ github.workspace }}
echo "SteamCMD installed."
- name: Log in to Steam and Download CS2
run: |
# Navigate to SteamCMD directory
cd ${{ github.workspace }}
./steamcmd.exe +login <your_steam_username> <your_password> \
+force_install_dir "${{ env.CS2_INSTALL_DIR }}" \
+app_update ${{ env.CS2_APP_ID }} validate \
+quit
echo "CS2 downloaded to ${{ env.CS2_INSTALL_DIR }}."
- name: Get Source2ViewerCLI
run: |
curl -L -o cli-windows-x64.zip ${{ env.SOURCE2_VIEWER_URL }}
Expand Down

0 comments on commit 153a29e

Please sign in to comment.