Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 5797a48

Browse files
committed
CHG | Fix bug in autobuild
1 parent 6242419 commit 5797a48

1 file changed

Lines changed: 28 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
- name: Setup Lime for Android
223223
run: |
224224
haxelib run lime config ANDROID_SDK $ANDROID_SDK_ROOT
225-
haxelib run lime config ANDROID_NDK_ROOT ${{ steps.setup-ndk.outputs.ndk-path }}
225+
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_ROOT
226226
haxelib run lime setup android -y
227227
228228
buildAndroid:
@@ -318,6 +318,7 @@ jobs:
318318
notify-discord-status:
319319
runs-on: ubuntu-latest
320320
needs: [check-build-status, version]
321+
if: always()
321322
steps:
322323
- name: Notify Discord
323324
env:
@@ -374,6 +375,13 @@ jobs:
374375
echo "⚠️ Some builds failed - skipping artifact upload"
375376
echo "should_upload=false" >> "$GITHUB_OUTPUT"
376377
fi
378+
- name: Checkout code
379+
uses: actions/checkout@v4
380+
- name: Download artifacts
381+
uses: actions/download-artifact@v4
382+
with:
383+
path: builds
384+
377385
- name: Create GitHub Release
378386
id: create_release
379387
uses: actions/create-release@v1.1.4
@@ -437,15 +445,30 @@ jobs:
437445
uses: actions/download-artifact@v4
438446
with:
439447
path: builds
440-
- name: List downloaded files
448+
449+
- name: List download contents
441450
run: ls -R builds
451+
452+
- name: Prepare artifacts for upload
453+
shell: bash
454+
run: |
455+
echo "🔍 Checking available artifacts..."
456+
shopt -s globstar nullglob
457+
# Use proper grouping for the find command
458+
find builds -type f \( -name "*.zip" -o -name "*.apk" -o -name "*.ipa" -o -name "*.dmg" \) | while read -r file; do
459+
echo "📦 Found artifact: $file"
460+
mkdir -p "release-artifacts"
461+
cp "$file" "release-artifacts/"
462+
echo "✓ Prepared $(basename "$file") for upload"
463+
done
464+
echo "📊 Summary of artifacts:"
465+
ls -lh release-artifacts/
466+
442467
- name: Upload Release Artifacts
443468
uses: softprops/action-gh-release@v2.2.2
444469
with:
445470
tag_name: ${{ needs.version.outputs.version_tag }}
446471
files: |
447-
builds/**/*.zip
448-
builds/**/*.apk
449-
builds/**/*.ipa
472+
release-artifacts/*
450473
env:
451474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)