From 73c53d6ef5f1057ca86fc77ff41fa67eca8a373d Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Mon, 25 May 2026 13:50:37 -0500 Subject: [PATCH] download entire game on miss --- .github/workflows/website.yaml | 12 ++++++++++-- scripts/download_fingerprint.sh | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index b9d4d1a6a..ffab05dbb 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -28,7 +28,9 @@ env: # steam STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} - FINGERPRINT: Manifest_UFSFiles_Win64.txt + STEAM_APP: 3341250 + STEAM_OS: windows + STEAM_FINGERPRINT: Manifest_UFSFiles_Win64.txt jobs: build: @@ -75,12 +77,18 @@ jobs: run: | ./scripts/download_fingerprint.sh - - uses: actions/cache@v5 + - name: Download cached game + uses: actions/cache@v5 id: game-cache with: path: temp/game key: ${{ runner.os }}-${{ hashFiles(format('temp/game/{0}', env.FINGERPRINT)) }} + - name: Download cache-missed game + if: steps.game-cache.outputs.cache-hit != 'true' + run: | + ./scripts/download_game.sh + - name: Build run: bun run build-website env: diff --git a/scripts/download_fingerprint.sh b/scripts/download_fingerprint.sh index df2d3a173..faeacafa8 100755 --- a/scripts/download_fingerprint.sh +++ b/scripts/download_fingerprint.sh @@ -8,5 +8,5 @@ set -a source .env set +a -echo $FINGERPRINT > $FILES -$DEPOT_DOWNLOADER -os windows -app 3341250 -filelist $FILES -username $STEAM_USERNAME -password $STEAM_PASSWORD -dir $GAME +echo $STEAM_FINGERPRINT > $FILES +$DEPOT_DOWNLOADER -os $STEAM_OS -app $STEAM_APP -filelist $FILES -username $STEAM_USERNAME -password $STEAM_PASSWORD -dir $GAME