From d8064640b19f941c72a31354c0c435c68fde2a5c Mon Sep 17 00:00:00 2001 From: Enrico Rubboli Date: Mon, 30 Sep 2024 14:33:23 +0400 Subject: [PATCH 1/2] create sha256 hashes for all the release files --- .github/workflows/release.yml | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8bab66f2b..0146b3f82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: id: generate_hashes run: | echo "HASHES<> $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 @@ -66,23 +66,6 @@ jobs: echo "BODY<> $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 @@ -98,9 +81,9 @@ jobs: - name: Create Release 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" - artifactErrorsFailBuild: true - name: "Release ${{ steps.get_version.outputs.VERSION }}" - body: ${{ steps.generate_body.outputs.BODY }} - token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + artifacts: "Mintlayer*/*" + artifactErrorsFailBuild: true + name: "Release ${{ steps.get_version.outputs.VERSION }}" + body: ${{ steps.generate_body.outputs.BODY }} + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 2801b227e747bc6afef0ffc088af828386597e93 Mon Sep 17 00:00:00 2001 From: Enrico Rubboli Date: Mon, 30 Sep 2024 14:36:27 +0400 Subject: [PATCH 2/2] fix indentation of the last block --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0146b3f82..759a4212f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,9 +81,9 @@ jobs: - name: Create Release uses: ncipollo/release-action@v1 with: - allowUpdates: true - artifacts: "Mintlayer*/*" - artifactErrorsFailBuild: true - name: "Release ${{ steps.get_version.outputs.VERSION }}" - body: ${{ steps.generate_body.outputs.BODY }} - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + allowUpdates: true + artifacts: "Mintlayer*/*" + artifactErrorsFailBuild: true + name: "Release ${{ steps.get_version.outputs.VERSION }}" + body: ${{ steps.generate_body.outputs.BODY }} + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file