add all map files to release in a single zip file

so it does not liter the release section with many files
This commit is contained in:
Jason2866 2023-05-25 16:05:53 +02:00 committed by GitHub
parent 75f634dc71
commit e932902351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -253,12 +253,16 @@ jobs:
path: ./mv_firmware path: ./mv_firmware
- name: Display structure of downloaded files - name: Display structure of downloaded files
run: ls -R ./mv_firmware/ run: ls -R ./mv_firmware/
- name: Zip all map.gz files in one file -> map_all.zip
run: 7z a -mx=9 -tzip -xr'!.*' map_all.zip mv_firmware/map
- name: Release - name: Release
uses: jason2866/action-gh-release@v1.2 uses: jason2866/action-gh-release@v1.2
#if: startsWith(github.ref, 'refs/tags/') #if: startsWith(github.ref, 'refs/tags/')
with: with:
tag_name: ${{ github.run_number }} tag_name: ${{ github.run_number }}
files: ./mv_firmware/firmware/* files: |
./mv_firmware/firmware/*
map_all.zip
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}