Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 authored Sep 30, 2024
1 parent 36b346a commit a4e0416
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,20 @@ jobs:
name: aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}
path: build/*

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}
path: ./
- name: Compress Release Asset (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
zip -r aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip build
- name: Compress Release Asset (Windows)
if: matrix.os == 'windows-latest'
run: |
powershell Compress-Archive -Path build\* -DestinationPath aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip
- name: Compress Release Asset (macOS)
if: matrix.os == 'macos-latest'
run: |
zip -r aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip build
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit a4e0416

Please sign in to comment.