Skip to content

Commit 35bb23f

Browse files
authored
Merge pull request #21 from lionello/github-action2
fix: zip build artifacts
2 parents 75b9683 + 29ff839 commit 35bb23f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ jobs:
1515
if: matrix.os != 'windows'
1616
run: ./mk
1717
- uses: ilammy/msvc-dev-cmd@v1
18+
if: matrix.os == 'windows'
1819
- name: Build (Windows)
1920
if: matrix.os == 'windows'
2021
shell: cmd
2122
run: mk.bat
23+
- name: Zip (Linux, macOS)
24+
if: matrix.os != 'windows'
25+
run: zip fart-${{ matrix.os }}.zip fart
26+
- name: Zip (Windows)
27+
if: matrix.os == 'windows'
28+
run: Compress-Archive -Path fart.exe -Destination fart-${{ matrix.os }}.zip
2229
- uses: actions/upload-artifact@v3
2330
with:
24-
name: binary-${{ matrix.os }}
25-
retention-days: 1
26-
path: |
27-
fart
28-
fart.exe
31+
path: fart-*.zip
2932
- name: Release
3033
uses: softprops/action-gh-release@v1
3134
if: startsWith(github.ref, 'refs/tags/')
3235
with:
33-
files: |
34-
fart
35-
fart.exe
36-
fail_on_unmatched_files: false
36+
files: fart-${{ matrix.os }}.zip
3737
generate_release_notes: true
3838
append_body: true

0 commit comments

Comments
 (0)