Skip to content

Commit

Permalink
fix windows release
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergodart committed Oct 25, 2024
1 parent 58fcd5b commit 059b8a0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,30 @@ jobs:

- name: Tar.gz files
run: tar -zcvf signls_${{ github.ref_name }}_${{ runner.os}}.tar.gz LICENSE -C bin signls
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.ref_type == 'tag'&& !startsWith(matrix.os, 'windows') }}

- name: Zip files
shell: pwsh
run: |
Compress-Archive bin\signls.exe LICENSE signls_${{ github.ref_name }}_${{ runner.os}}.zip
if: ${{ github.ref_type == 'tag'&& startsWith(matrix.os, 'windows') }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: signls_${{ github.sha }}_${{ runner.os}}
path: signls_${{ github.ref_name }}_${{ runner.os}}.tar.gz
if-no-files-found: error
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.ref_type == 'tag' && !startsWith(matrix.os, 'windows') }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: signls_${{ github.sha }}_${{ runner.os}}
path: signls_${{ github.ref_name }}_${{ runner.os}}.zip
if-no-files-found: error
if: ${{ github.ref_type == 'tag' && startsWith(matrix.os, 'windows') }}
}}

release:
needs: build
Expand Down

0 comments on commit 059b8a0

Please sign in to comment.