diff --git a/.github/workflows/make_binaries.yaml b/.github/workflows/make_binaries.yaml index eddac3b..55121ed 100644 --- a/.github/workflows/make_binaries.yaml +++ b/.github/workflows/make_binaries.yaml @@ -27,19 +27,34 @@ jobs: - name: Build PlatformIO Project run: pio run + - name: Copy binaries to /firmware + run: bash copy_firmware.sh + + - name: Upload binaries for use in release step if needed + uses: actions/upload-artifact@v3 + with: + name: firmware + path: firmware + deploy_release: if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest needs: build steps: + - uses: actions/checkout@v3 - - name: Copy binaries to /firmware - run: bash copy_firmware.sh + - name: Download binaries + uses: actions/download-artifact@v3 + with: + name: firmware + + - name: List workspace directory + run: ls -la - - name: Create release and upload binary + - name: Create release and upload binaries run: | - gh release create v0.0.${{github.run_number}} firmware/* + gh release create v0.0.${{github.run_number}} *.bin env: GITHUB_TOKEN: ${{ github.TOKEN }} - shell: bash + shell: bash \ No newline at end of file diff --git a/copy_firmware.sh b/copy_firmware.sh index 0e6b2ef..207a176 100644 --- a/copy_firmware.sh +++ b/copy_firmware.sh @@ -5,4 +5,7 @@ for f in $(ls -d *) do echo $f cp $f/firmware.bin ../../firmware/firmware_$f.bin -done \ No newline at end of file +done +echo "Contents of firmware directory:" +cd ../../ +ls -l firmware \ No newline at end of file diff --git a/firmware/firmware_esp32cam.bin b/firmware/firmware_esp32cam.bin deleted file mode 100644 index dbd1b82..0000000 Binary files a/firmware/firmware_esp32cam.bin and /dev/null differ diff --git a/firmware/firmware_giveaway-unit.bin b/firmware/firmware_giveaway-unit.bin deleted file mode 100644 index 7534fd7..0000000 Binary files a/firmware/firmware_giveaway-unit.bin and /dev/null differ diff --git a/firmware/firmware_m5stack-timer-cam.bin b/firmware/firmware_m5stack-timer-cam.bin deleted file mode 100644 index eca936e..0000000 Binary files a/firmware/firmware_m5stack-timer-cam.bin and /dev/null differ diff --git a/firmware/firmware_seeed_xiao_esp32s3.bin b/firmware/firmware_seeed_xiao_esp32s3.bin deleted file mode 100644 index a65cb77..0000000 Binary files a/firmware/firmware_seeed_xiao_esp32s3.bin and /dev/null differ