File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 uses : actions/checkout@v4
3030 with :
3131 submodules : ' recursive'
32+ fetch-tags : true
3233
3334 - name : Build Main Code
3435 uses : espressif/esp-idf-ci-action@v1
5051 build/flasher_args.json
5152 build/flash_args
5253
54+ - name : Zip up build files for release using matrix build name + release tag name
55+ if : ${{ github.event.release && github.event.action == 'published' }}
56+ shell : bash
57+ run : |
58+ # zip up just the files we uploaded for the release
59+ zip_name=camera-display-${{ matrix.build.name }}_$(git describe --tags --dirty).zip"
60+ cd ${{ matrix.build.path }}
61+ zip -r -j $zip_name build/*.bin build/*.elf build/bootloader/bootloader.bin build/partition_table/partition-table.bin build/flasher_args.json build/flash_args
62+ echo "artifact_path=${{ matrix.build.path }}/$zip_name" >> "$GITHUB_ENV"
63+
64+ - name : Attach files to release
65+ uses : softprops/action-gh-release@v2
66+ if : ${{ github.event.release && github.event.action == 'published' }}
67+ with :
68+ files : ${{ env.artifact_path }}
69+
5370 package :
5471 name : Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu)
5572 needs : build
You can’t perform that action at this time.
0 commit comments