Skip to content

Commit

Permalink
Merge pull request #21 from lionello/github-action2
Browse files Browse the repository at this point in the history
fix: zip build artifacts
  • Loading branch information
lionello authored Oct 10, 2023
2 parents 75b9683 + 29ff839 commit 35bb23f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ jobs:
if: matrix.os != 'windows'
run: ./mk
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows'
- name: Build (Windows)
if: matrix.os == 'windows'
shell: cmd
run: mk.bat
- name: Zip (Linux, macOS)
if: matrix.os != 'windows'
run: zip fart-${{ matrix.os }}.zip fart
- name: Zip (Windows)
if: matrix.os == 'windows'
run: Compress-Archive -Path fart.exe -Destination fart-${{ matrix.os }}.zip
- uses: actions/upload-artifact@v3
with:
name: binary-${{ matrix.os }}
retention-days: 1
path: |
fart
fart.exe
path: fart-*.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
fart
fart.exe
fail_on_unmatched_files: false
files: fart-${{ matrix.os }}.zip
generate_release_notes: true
append_body: true

0 comments on commit 35bb23f

Please sign in to comment.