From 08e07957a7213e37b2d8981f4105c4ebcec02ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:43:24 -0500 Subject: [PATCH] feat: post setup --- .github/workflows/cd-assets.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd-assets.yml b/.github/workflows/cd-assets.yml index 9f9584cde..2532e8247 100644 --- a/.github/workflows/cd-assets.yml +++ b/.github/workflows/cd-assets.yml @@ -36,22 +36,26 @@ jobs: with: submodules: recursive token: ${{ secrets.GH_TOKEN }} - - uses: oven-sh/setup-bun@v1 - - name: Install dependencies + - name: (Steam) Setup bun + uses: oven-sh/setup-bun@v1 + if: github.event.inputs.zip_url == '' + + - name: (Steam) Install dependencies + if: github.event.inputs.zip_url == '' run: bun install - - name: Setup DepotDownloader + - name: (Steam) Setup DepotDownloader if: github.event.inputs.zip_url == '' run: bun scripts/setupDepotDownloader.ts - - name: Download Steam client + - name: (Steam) Download client if: github.event.inputs.zip_url == '' run: | chmod +x ./temp/depotDownloader/DepotDownloader ./temp/depotDownloader/DepotDownloader -os windows -app 444200 -username ${{ secrets.DEPOT_DOWNLOADER_USERNAME }} -password "${{ secrets.DEPOT_DOWNLOADER_PASSWORD }}" - - name: Apply patches + - name: (Steam) Apply patches if: github.event.inputs.zip_url == '' env: DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }} @@ -61,7 +65,7 @@ jobs: WOTB_DLC_CDN: ${{ secrets.WOTB_DLC_CDN }} run: bun scripts/applyPatches.ts --depot - - name: Download ZIP client + - name: (ZIP) Download client if: github.event.inputs.zip_url != '' env: ZIP_URL: ${{ github.event.inputs.zip_url }} @@ -72,6 +76,14 @@ jobs: rm client.zip mv $ZIP_ROOT depots/444202/0 + - name: (ZIP) Setup bun + uses: oven-sh/setup-bun@v1 + if: github.event.inputs.zip_url != '' + + - name: (ZIP) Install dependencies + if: github.event.inputs.zip_url != '' + run: bun install + - name: Build assets env: DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}