This commit is contained in:
Mateusz Faderewski 2023-02-18 19:32:44 +01:00
parent 9090d78585
commit 8d0d89b4b0

View File

@ -52,14 +52,15 @@ jobs:
matrix: matrix:
os: [windows-latest, ubuntu-latest, macos-latest] os: [windows-latest, ubuntu-latest, macos-latest]
include: include:
- zip: zip -j -r ${{ matrix.artifact }}.zip dist/*
- os: windows-latest - os: windows-latest
artifact: Apps-Windows artifact: Apps-Windows
zip: tar.exe -a -c -C dist -f ${{ matrix.artifact }}.zip * zip: tar.exe -a -c -f
- os: ubuntu-latest - os: ubuntu-latest
artifact: Apps-Linux artifact: Apps-Linux
zip: zip -r
- os: macos-latest - os: macos-latest
artifact: Apps-macOS artifact: Apps-macOS
zip: zip -r
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -91,17 +92,17 @@ jobs:
path: sw/pc/dist/* path: sw/pc/dist/*
- name: Zip executables - name: Zip executables
run: ${{ matrix.zip }} run: ${{ matrix.zip }} ${{ matrix.artifact }}.zip *
working-directory: sw/pc working-directory: sw/pc/dist
- name: TEST - name: TEST
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.artifact }}-test name: ${{ matrix.artifact }}-test
path: sw/pc/${{ matrix.artifact }}.zip path: sw/pc/dist/${{ matrix.artifact }}.zip
- name: Upload release assets - name: Upload release assets
uses: softprops/action-gh-release@v0.1.15 uses: softprops/action-gh-release@v0.1.15
if: github.event_name == 'release' && github.event.action == 'created' if: github.event_name == 'release' && github.event.action == 'created'
with: with:
files: sw/pc/${{ matrix.artifact }}.zip files: sw/pc/dist/${{ matrix.artifact }}.zip