Skip to content

Commit

Permalink
ci: use zip for windows release
Browse files Browse the repository at this point in the history
  • Loading branch information
Archeb committed Nov 17, 2023
1 parent 4c711fc commit 23fb469
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,16 @@ jobs:
cd ${{ matrix.artifact_path }}
mv ./nexttrace_* ./${{ matrix.nt_fn }}
chmod +x ./${{ matrix.nt_fn }}
{{- if eq matrix.runtime "win-x64" }}
zip -r ${{ github.workspace }}/${{ matrix.runtime }}.zip ${{ matrix.pack_target == '' && '.' || matrix.pack_target }}
{{- else }}
tar -cvzf ${{ github.workspace }}/${{ matrix.runtime }}.tar.gz ${{ matrix.pack_target == '' && '.' || matrix.pack_target }}
{{- endif }}
- name: Edit release for ${{ matrix.runtime }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.runtime }}.tar.gz
asset_name: ${{ matrix.runtime }}.tar.gz
file: ${{ matrix.runtime }}.{{- if eq matrix.runtime "win-x64" }}zip{{- else }}tar.gz{{- endif }}
asset_name: ${{ matrix.runtime }}.{{- if eq matrix.runtime "win-x64" }}zip{{- else }}tar.gz{{- endif }}
tag: ${{ github.ref }}

0 comments on commit 23fb469

Please sign in to comment.