Skip to content

Commit

Permalink
Fix minor issues in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
arixmkii committed Dec 13, 2024
1 parent 7dd8e8e commit 9e8c2be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/prepare-podman-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
git
unzip
base-devel
man-db
mingw-w64-ucrt-x86_64-toolchain
zip
mingw-w64-ucrt-x86_64-go
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-qcw-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ jobs:
cat ./*/*/sha.checksums | awk '{ print length, $0 }' | sort -n | cut -d" " -f2- > sha.sums
ARTSIZE=`cat sha.sums | wc -l`
ARTSIZE2=$((ARTSIZE / 2))
sed -e "s/<<SHA256>>/$(head -n $ARTSIZE2 sha.sums | sort -k 2 | sed -z 's:\n:\\n:g' | sed 's:/:\\/:g')/g" -i release.template.md
sed -e "s/<<SHA512>>/$(tail -n $ARTSIZE2 sha.sums | sort -k 2 | sed -z 's:\n:\\n:g' | sed 's:/:\\/:g')/g" -i release.template.md
head -n $ARTSIZE2 sha.sums | sort -k 2 > qcw/checksums.sha256
tail -n $ARTSIZE2 sha.sums | sort -k 2 > qcw/checksums.sha512
sed -e "s/<<SHA256>>/$(cat qcw/checksums.sha256 | sed -z 's:\n:\\n:g' | sed 's:/:\\/:g')/g" -i release.template.md
sed -e "s/<<SHA512>>/$(cat qcw/checksums.sha512 | sed -z 's:\n:\\n:g' | sed 's:/:\\/:g')/g" -i release.template.md
sed 's/<<TAG_NAME>>/${{ inputs.release_tag }}/g' -i release.template.md
sed 's/<<RELEASE_HIGHLIGHTS>>/${{ inputs.release_highlights }}/g' -i release.template.md
sed "s/<<DOCKER_VERSION>>/$DOCKER_VERSION/g" -i release.template.md
Expand All @@ -72,7 +74,7 @@ jobs:
with:
name: ${{ inputs.release_name }}
prerelease: "true"
artifacts: "qcw/**/*.exe"
artifacts: "qcw/**/*.exe,qcw/*.sha256,qcw/*.sha512"
bodyFile: "release.template.md"
tag: ${{ inputs.release_tag }}
commit: "main"

0 comments on commit 9e8c2be

Please sign in to comment.