@@ -227,14 +227,14 @@ jobs:
227227 echo "✅ ZIP archive created"
228228 ls -lh TablePro-arm64.zip
229229
230- - name : Upload artifacts
231- uses : actions/upload-artifact@v4
232- with :
233- name : TablePro-arm64-${{ github.sha }}
234- path : |
235- build/Release/*.dmg
236- build/Release/TablePro-arm64.zip
237- retention-days : ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }}
230+ - name : Stage artifacts for release job
231+ run : |
232+ STAGING="/tmp/tablepro-artifacts-${{ github.sha }}"
233+ mkdir -p "$STAGING"
234+ cp build/Release/*.dmg "$STAGING/" 2>/dev/null || true
235+ cp build/Release/TablePro-arm64.zip "$STAGING/" 2>/dev/null || true
236+ echo "✅ ARM64 artifacts staged to $STAGING"
237+ ls -lh "$STAGING"
238238
239239 build-x86_64 :
240240 name : Build x86_64
@@ -483,14 +483,14 @@ jobs:
483483 echo "✅ ZIP archive created"
484484 ls -lh TablePro-x86_64.zip
485485
486- - name : Upload artifacts
487- uses : actions/upload-artifact@v4
488- with :
489- name : TablePro-x86_64-${{ github.sha }}
490- path : |
491- build/Release/*.dmg
492- build/Release/TablePro- x86_64.zip
493- retention-days : ${{ startsWith(github.ref, 'refs/tags/v') && 90 || 7 }}
486+ - name : Stage artifacts for release job
487+ run : |
488+ STAGING="/tmp/tablepro-artifacts-${{ github.sha }}"
489+ mkdir -p "$STAGING"
490+ cp build/Release/*.dmg "$STAGING/" 2>/dev/null || true
491+ cp build/Release/TablePro-x86_64.zip "$STAGING/" 2>/dev/null || true
492+ echo "✅ x86_64 artifacts staged to $STAGING"
493+ ls -lh "$STAGING"
494494
495495 release :
496496 name : Create GitHub Release
@@ -507,17 +507,13 @@ jobs:
507507 with :
508508 fetch-depth : 0
509509
510- - name : Download ARM64 artifact
511- uses : actions/download-artifact@v4
512- with :
513- name : TablePro-arm64-${{ github.sha }}
514- path : artifacts/
515-
516- - name : Download x86_64 artifact
517- uses : actions/download-artifact@v4
518- with :
519- name : TablePro-x86_64-${{ github.sha }}
520- path : artifacts/
510+ - name : Collect staged artifacts
511+ run : |
512+ STAGING="/tmp/tablepro-artifacts-${{ github.sha }}"
513+ mkdir -p artifacts/
514+ cp "$STAGING"/* artifacts/
515+ echo "✅ Artifacts collected from $STAGING"
516+ ls -lh artifacts/
521517
522518 - name : Verify and organize artifacts for release
523519 run : |
@@ -696,3 +692,7 @@ jobs:
696692 prerelease : ${{ contains(github.ref, '-beta') || contains(github.ref, '-alpha') || contains(github.ref, '-rc') }}
697693 env :
698694 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
695+
696+ - name : Clean up staging directory
697+ if : always()
698+ run : rm -rf "/tmp/tablepro-artifacts-${{ github.sha }}" || true
0 commit comments