Skip to content

Commit

Permalink
Update release.yaml workflow to generate checksums and create a draft…
Browse files Browse the repository at this point in the history
… release
  • Loading branch information
royshil committed Apr 25, 2024
1 parent a59c7a5 commit 65dfe58
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,27 +102,28 @@ jobs:
name: scoresight-${GITHUB_REF_NAME}
path: uploads

# - 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
# # find the files from the above step and generate checksums
# for file in ${{ github.workspace }}/scoresight-*; do
# echo " ${file##*/}: $(sha256sum "${file}" | cut -d " " -f 1)" >> ${{ github.workspace }}/CHECKSUMS.txt
# done

# - name: Create Release 🛫
# if: fromJSON(steps.check.outputs.validTag)
# id: create_release
# uses: softprops/action-gh-release@v1
# with:
# draft: true
# body_path: ${{ github.workspace }}/CHECKSUMS.txt
# files: |
# ${{ github.workspace }}/scoresight-*.exe
# ${{ github.workspace }}/scoresight-*.dmg
# ${{ github.workspace }}/scoresight-*.tar
- 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
# find the files from the above step and generate checksums
for file in ${{ github.workspace }}/scoresight-*; do
echo " ${file##*/}: $(sha256sum "${file}" | cut -d " " -f 1)" >> ${{ github.workspace }}/CHECKSUMS.txt
done
- name: Create Release 🛫
if: fromJSON(steps.check.outputs.validTag)
id: create_release
uses: softprops/action-gh-release@v1
with:
draft: true
body_path: ${{ github.workspace }}/CHECKSUMS.txt
files: |
${{ github.workspace }}/scoresight-*.zip
${{ github.workspace }}/scoresight-*.exe
${{ github.workspace }}/scoresight-*.dmg
${{ github.workspace }}/scoresight-*.tar

0 comments on commit 65dfe58

Please sign in to comment.