From 963bd8a8aa58f58e1eda2f6b9c5208ec0eadd5b0 Mon Sep 17 00:00:00 2001 From: Janez T Date: Wed, 22 Oct 2025 20:39:34 +0200 Subject: [PATCH] fix: Move checkout step before artifact downloads in R2 upload job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The actions/checkout@v4 step was running after downloading artifacts, causing it to wipe out the downloaded files. This resulted in empty build directories and missing artifacts in the index.html. By moving checkout to the beginning of the upload-to-r2 job, artifacts are downloaded after the repository is cloned, preserving all build files for proper R2 upload. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/build-multiplatform.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-multiplatform.yml b/.github/workflows/build-multiplatform.yml index 42a6d11..93514e0 100644 --- a/.github/workflows/build-multiplatform.yml +++ b/.github/workflows/build-multiplatform.yml @@ -456,6 +456,11 @@ jobs: if: always() && (needs.build-android.result == 'success' || needs.build-ios.result == 'success' || needs.build-macos.result == 'success' || needs.build-windows.result == 'success') steps: + - name: Checkout code for git log + uses: actions/checkout@v4 + with: + fetch-depth: 10 # Fetch last 10 commits + - name: Download Android APK if: needs.build-android.result == 'success' uses: actions/download-artifact@v4 @@ -505,11 +510,6 @@ jobs: echo "This is expected if no platform builds succeeded" fi - - name: Checkout code for git log - uses: actions/checkout@v4 - with: - fetch-depth: 10 # Fetch last 10 commits - - name: Generate build metadata id: metadata run: |