Skip to content

Commit

Permalink
workflows: Fix nested zip artifacts
Browse files Browse the repository at this point in the history
Workaround the web UI rearchiving our artifact for download..
  • Loading branch information
mariobalanica committed Mar 16, 2024
1 parent 6eecb4f commit c1ca184
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,12 @@ jobs:
run: |
curl -O -L ${{ env.RPI_FIRMWARE_URL }}/raw/${{ env.DTB_VERSION }}/boot/bcm2712-rpi-5-b.dtb
- name: Create firmware archive
run: |
zip -r \
RPi${{ matrix.MODEL }}_UEFI_${{ matrix.CONFIGURATION }}_${{ steps.get_version_tag.outputs.version }}.zip \
RPI_EFI.fd \
config.txt \
*.dtb
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: RPi${{ matrix.MODEL }}_UEFI_${{ matrix.CONFIGURATION }}_${{ steps.get_version_tag.outputs.version }}
path: ./*.zip
path: |
RPI_EFI.fd
config.txt
*.dtb
if-no-files-found: error
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ jobs:
contents: write
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Create firmware archive
run: |
for dir in *Release*/; do
pushd "${dir}"
zip -r "../${dir%/}.zip" .
popd
done
- name: Create release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
draft: true
prerelease: false
files: "*/*Release*.zip"
files: "*.zip"
fail_on_unmatched_files: true

0 comments on commit c1ca184

Please sign in to comment.