@@ -49,12 +49,13 @@ jobs:
4949 0x8000 partitions.bin \
5050 0x10000 firmware.bin
5151 EOF
52- (cd dist && zip -r "../ echolocation-cores3-${TAG}.zip" "echolocation-cores3-${TAG}")
52+ (cd dist && zip -r "echolocation-cores3-${TAG}.zip" "echolocation-cores3-${TAG}")
5353
5454 - name : Upload firmware artifacts
5555 uses : actions/upload-artifact@v4
5656 with :
5757 name : firmware-release
58+ if-no-files-found : error
5859 path : |
5960 dist/echolocation-cores3-${{ inputs.tag }}.zip
6061 firmware/.pio/build/m5stack-cores3/firmware.bin
@@ -84,12 +85,13 @@ jobs:
8485 The card should contain /audio/keys/*.wav (same layout as this archive).
8586 Insert the card into the CoreS3 SD slot before use.
8687 EOF
87- (cd dist && zip -r "../ echolocation-sd-audio-${TAG}.zip" "echolocation-sd-audio-${TAG}")
88+ (cd dist && zip -r "echolocation-sd-audio-${TAG}.zip" "echolocation-sd-audio-${TAG}")
8889
8990 - name : Upload audio artifacts
9091 uses : actions/upload-artifact@v4
9192 with :
9293 name : sd-audio
94+ if-no-files-found : error
9395 path : dist/echolocation-sd-audio-${{ inputs.tag }}.zip
9496
9597 release :
@@ -100,16 +102,28 @@ jobs:
100102 with :
101103 path : artifacts
102104
105+ - name : Verify release assets
106+ run : |
107+ set -e
108+ for f in \
109+ "artifacts/firmware-release/dist/echolocation-cores3-${{ inputs.tag }}.zip" \
110+ "artifacts/firmware-release/firmware/.pio/build/m5stack-cores3/firmware.bin" \
111+ "artifacts/sd-audio/echolocation-sd-audio-${{ inputs.tag }}.zip"
112+ do
113+ test -f "$f" || { echo "Missing release asset: $f"; ls -R artifacts; exit 1; }
114+ done
115+
103116 - name : Create GitHub release
104117 uses : softprops/action-gh-release@v2
105118 with :
106119 tag_name : ${{ inputs.tag }}
107120 name : echolocation ${{ inputs.tag }}
108121 prerelease : ${{ inputs.prerelease }}
109122 generate_release_notes : true
123+ fail_on_unmatched_files : true
110124 files : |
111125 artifacts/firmware-release/dist/echolocation-cores3-${{ inputs.tag }}.zip
112126 artifacts/firmware-release/firmware/.pio/build/m5stack-cores3/firmware.bin
113- artifacts/sd-audio/dist/ echolocation-sd-audio-${{ inputs.tag }}.zip
127+ artifacts/sd-audio/echolocation-sd-audio-${{ inputs.tag }}.zip
114128 env :
115129 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments