Skip to content

Commit 119ab62

Browse files
committed
chore: Add back artifact upload to release CI
1 parent 9ecead9 commit 119ab62

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/package_main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
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
@@ -50,6 +51,22 @@ jobs:
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

0 commit comments

Comments
 (0)