mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
fix: Move checkout step before artifact downloads in R2 upload job
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 <noreply@anthropic.com>
This commit is contained in:
10
.github/workflows/build-multiplatform.yml
vendored
10
.github/workflows/build-multiplatform.yml
vendored
@@ -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')
|
if: always() && (needs.build-android.result == 'success' || needs.build-ios.result == 'success' || needs.build-macos.result == 'success' || needs.build-windows.result == 'success')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout code for git log
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 10 # Fetch last 10 commits
|
||||||
|
|
||||||
- name: Download Android APK
|
- name: Download Android APK
|
||||||
if: needs.build-android.result == 'success'
|
if: needs.build-android.result == 'success'
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
@@ -505,11 +510,6 @@ jobs:
|
|||||||
echo "This is expected if no platform builds succeeded"
|
echo "This is expected if no platform builds succeeded"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Checkout code for git log
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 10 # Fetch last 10 commits
|
|
||||||
|
|
||||||
- name: Generate build metadata
|
- name: Generate build metadata
|
||||||
id: metadata
|
id: metadata
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user