Skip to content

Commit

Permalink
Merge pull request #1820 from mintlayer/fix_ci_hashes
Browse files Browse the repository at this point in the history
create sha256 hashes for all the release files
  • Loading branch information
erubboli authored Sep 30, 2024
2 parents 3df3e4e + 2801b22 commit 7e6611c
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
id: generate_hashes
run: |
echo "HASHES<<EOF" >> $GITHUB_OUTPUT
for file in Mintlayer_Node_*/*.dmg Mintlayer_Node_*/*.deb Mintlayer_Node_*/*.rpm Mintlayer_Node_*/*.zip Mintlayer_Node_*/*_Setup.exe; do
for file in Mintlayer*/*; do
if [ -f "$file" ]; then
echo "$(sha256sum $file | awk '{print $1}') $(basename $file)" >> $GITHUB_OUTPUT
fi
Expand All @@ -66,23 +66,6 @@ jobs:
echo "BODY<<EOF" >> $GITHUB_OUTPUT
echo "Release version ${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
echo "This release includes the following packages:" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
echo "macOS:" >> $GITHUB_OUTPUT
echo "- Mintlayer Node GUI (DMG) for Intel and Apple Silicon" >> $GITHUB_OUTPUT
echo "- Mintlayer Node (ZIP) for Intel and Apple Silicon" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
echo "Linux:" >> $GITHUB_OUTPUT
echo "- Mintlayer Node GUI (DEB) for x86_64 and ARM64" >> $GITHUB_OUTPUT
echo "- Mintlayer Node (DEB and TGZ) for x86_64 and ARM64" >> $GITHUB_OUTPUT
echo "- Mintlayer Node GUI (RPM) for x86_64" >> $GITHUB_OUTPUT
echo "- Mintlayer Node (RPM) for x86_64" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
echo "Windows:" >> $GITHUB_OUTPUT
echo "- Mintlayer Node GUI (ZIP) for x64" >> $GITHUB_OUTPUT
echo "- Mintlayer Node GUI Installer (EXE) for x64" >> $GITHUB_OUTPUT
echo "- Mintlayer Node (ZIP) for x86" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
echo "Please download the appropriate package for your system." >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
echo "Docker Images" >> $GITHUB_OUTPUT
Expand All @@ -99,8 +82,8 @@ jobs:
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "Mintlayer_Node_*/*.dmg,Mintlayer_Node_*/*.deb,Mintlayer_Node_*/*.rpm,Mintlayer_Node_*/*.zip,Mintlayer_Node_*/*.tar.gz,Mintlayer_Node_*/*_Setup.exe"
artifacts: "Mintlayer*/*"
artifactErrorsFailBuild: true
name: "Release ${{ steps.get_version.outputs.VERSION }}"
body: ${{ steps.generate_body.outputs.BODY }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7e6611c

Please sign in to comment.