Skip to content

Commit

Permalink
Compress release files with zstd.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Aug 20, 2024
1 parent cf2ae5f commit 6de1616
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
- name: Remove .git
run: rm -rf "${name}-${ref}/.git" && ls -laR "${name}-${ref}"

- name: Tar/xz source
run: tar -cvJf "${name}-${ref}.tar.xz" "${name}-${ref}"
- name: Tar/zstd source
run: tar --zstd -cvf "${name}-${ref}.tar.zst" "${name}-${ref}"

- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
Expand Down Expand Up @@ -124,11 +124,11 @@ jobs:
- name: Check output
run: file "target/${{ matrix.target }}/release/${name}"
- name: Compress
run: cp "target/${{ matrix.target }}/release/${name}" . && tar -cvJf "${name}-${ref}-${{ matrix.target }}.tar.xz" "${name}"
run: cp "target/${{ matrix.target }}/release/${name}" . && tar --zstd -cvf "${name}-${ref}-${{ matrix.target }}.tar.zst" "${name}"
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: ${{ matrix.target }}
path: "${{ env.name }}-${{ env.ref }}-${{ matrix.target }}.tar.xz"
path: "${{ env.name }}-${{ env.ref }}-${{ matrix.target }}.tar.zstd"

publish_github:
name: Publish [GitHub]
Expand All @@ -149,7 +149,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
*.xz
*.zstd
body_path: release-notes.md
make_latest: true
env:
Expand Down

0 comments on commit 6de1616

Please sign in to comment.