Skip to content

Commit

Permalink
Merge pull request #4 from obs-ai/roy.add_checksums_to_release
Browse files Browse the repository at this point in the history
Add checksums and release body
  • Loading branch information
royshil authored Oct 19, 2023
2 parents f164eb5 + f6c9aa9 commit cb83003
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,25 @@ jobs:
- name: "Download build artifacts"
uses: "actions/download-artifact@v3"

- name: Generate Checksums 🪪
if: fromJSON(steps.check.outputs.validTag)
run: |
: Generate Checksums 🪪
if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi
shopt -s extglob
echo "### Checksums" > ${{ github.workspace }}/CHECKSUMS.txt
for file in ${{ github.workspace }}/@(*.exe|*.deb|*.ddeb|*.pkg|*.tar.gz|*.tar.xz|*.zip); do
echo " ${file##*/}: $(sha256sum "${file}" | cut -d " " -f 1)" >> ${{ github.workspace }}/CHECKSUMS.txt
done
- name: "Create Release"
uses: "softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5"
with:
draft: true
tag_name: "${{ steps.metadata.outputs.version }}"
name: "${{ steps.metadata.outputs.version }}"
body_path: ${{ github.workspace }}/CHECKSUMS.txt
files: |
${{ github.workspace }}/**/*.tar.gz
${{ github.workspace }}/**/*.zip

0 comments on commit cb83003

Please sign in to comment.