Skip to content

Commit

Permalink
Merge pull request #37 from glotzerlab/release-zstd
Browse files Browse the repository at this point in the history
Compress release files with zstd.
  • Loading branch information
joaander authored Aug 20, 2024
2 parents cf2ae5f + 6f43e23 commit a5d66d2
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.zst"

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

0 comments on commit a5d66d2

Please sign in to comment.