8484 openssl dgst -sign "$secret_file" -keyform PEM -sha256 -out firmware.sign -binary ./SmartEVSE-3/.pio/build/release/firmware.bin
8585 # throw it all in one file
8686 cat firmware.sign ./SmartEVSE-3/.pio/build/release/firmware.bin > ./SmartEVSE-3/.pio/build/release/firmware.signed.bin
87+
88+ # save .bin files to directory because v4 upload-artifact@v4 can no longer add files to an existing artifact; so much for efficiency :-(
89+ mkdir ./SmartEVSE-3/distribution
90+ mv ./SmartEVSE-3/.pio/build/release/*.bin ./SmartEVSE-3/distribution
91+
8792 # Remove the temporary file
8893 rm -f "$secret_file"
8994 - name : Build debug version
@@ -101,19 +106,18 @@ jobs:
101106 cat firmware.sign ./SmartEVSE-3/.pio/build/release/firmware.bin > ./SmartEVSE-3/.pio/build/release/firmware.signed.bin
102107 # Remove the temporary file
103108 rm -f "$secret_file"
104- mv ./SmartEVSE-3/.pio/build/release/firmware.bin ./SmartEVSE-3/.pio/build/release /firmware.debug.bin
105- mv ./SmartEVSE-3/.pio/build/release/firmware.signed.bin ./SmartEVSE-3/.pio/build/release /firmware.debug.signed.bin
109+ mv ./SmartEVSE-3/.pio/build/release/firmware.bin ./SmartEVSE-3/distribution /firmware.debug.bin
110+ mv ./SmartEVSE-3/.pio/build/release/firmware.signed.bin ./SmartEVSE-3/distribution /firmware.debug.signed.bin
106111 # prevent the .bin files are gathered in .pio directory in the dists-zip file:
107- cp -a ./SmartEVSE-3/HowToFlash.txt ./SmartEVSE-3/.pio/build/release/firmware.debug.signed.bin
112+ cp -a ./SmartEVSE-3/HowToFlash.txt ./SmartEVSE-3/distribution
108113
109114 # Combined upload for all artifacts using v4
110115 - name : Upload all artifacts
111116 uses : actions/upload-artifact@v4
112117 with :
113118 name : dists_zip
114119 path : |
115- ./SmartEVSE-3/.pio/build/release/*.bin
116- ./SmartEVSE-3/.pio/build/release/HowToFlash.txt
120+ ./SmartEVSE-3/distribution/*
117121 retention-days : 10
118122 compression-level : 6
119123 overwrite : true
0 commit comments