Skip to content

Commit

Permalink
feat(#107): wip add shasum to release
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jul 18, 2024
1 parent e8306d7 commit c3bffa9
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,48 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: download linux artifact
if: startsWith(github.ref, 'refs/tags/v')
# if: startsWith(github.ref, 'refs/tags/v')
uses: actions/download-artifact@v4
with:
name: vivify-linux
path: ./vivify-linux
- name: download macos artifact
if: startsWith(github.ref, 'refs/tags/v')
# if: startsWith(github.ref, 'refs/tags/v')
uses: actions/download-artifact@v4
with:
name: vivify-macos
path: ./vivify-macos
- name: fix permissions & archive
if: startsWith(github.ref, 'refs/tags/v')
# if: startsWith(github.ref, 'refs/tags/v')
run: |
chmod +x ./vivify-linux/* ./vivify-macos/*
tar -czf vivify-linux.tar.gz vivify-linux
tar -czf vivify-macos.tar.gz vivify-macos
- name: info
id: info
# if: startsWith(github.ref, 'refs/tags/v')
run: |
echo "SHA_LINUX=$(sha256sum vivify-linux.tar.gz | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
echo "SHA_MACOS=$(sha256sum vivify-macos.tar.gz | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
echo "BODY=$(git tag -l --format="%(contents:subject)")" >> "$GITHUB_OUTPUT"
echo "PREV_TAG=$(git tag --sort=version:refname | tail -2 | head -1)" >> "$GITHUB_OUTPUT"
- name: test-output
run: |
echo '## What's changed'
echo ''
echo '${{ steps.info.outputs.BODY }}`'
echo ''
echo '**Full changelog**: https://github.com/jannis-baum/vivify/compare/${{ steps.info.outputs.PREV_TAG }}...${{ github.ref }}'
echo ''
echo '### SHA256 checksums'
echo ''
echo '- Linux: `${{ steps.info.outputs.SHA_LINUX }}`'
echo '- macOS: `${{ steps.info.outputs.SHA_MACOS }}`'
- name: release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: vivify-*.tar.gz
body: |
git tag -l --format="%(contents:subject)"

0 comments on commit c3bffa9

Please sign in to comment.