@@ -13,15 +13,19 @@ jobs:
1313 uses : ./.github/workflows/build-linux.yml
1414 with :
1515 version : ${{ github.event.client_payload.tag }}
16+ run_tests : true
1617
1718 build-windows :
1819 uses : ./.github/workflows/build-windows.yml
1920 with :
2021 version : ${{ github.event.client_payload.tag }}
22+ run_tests : true
2123
2224 publish :
2325 needs : [ build-linux, build-windows ]
2426 runs-on : ubuntu-latest
27+ env :
28+ TAG : ${{ github.event.client_payload.tag }}
2529
2630 steps :
2731 - name : Download Linux artifact
@@ -35,19 +39,48 @@ jobs:
3539 name : REDasm-windows-x86_64
3640 path : redasm-windows-x86_64/
3741
42+ - name : Rename AppImage
43+ env :
44+ VERSION : ${{ steps.version.outputs.version }}
45+ run : mv REDasm-linux-x86_64.AppImage "REDasm-${VERSION}-linux-x86_64.AppImage"
46+
3847 - name : Package Windows
39- run : zip -r REDasm-windows-x86_64.zip redasm-windows-x86_64/
48+ env :
49+ VERSION : ${{ steps.version.outputs.version }}
50+ run : zip -r "REDasm-${VERSION}-windows-x86_64.zip" redasm-windows-x86_64/
51+
52+ - name : Checksum artifacts
53+ env :
54+ VERSION : ${{ steps.version.outputs.version }}
55+ run : |
56+ sha256sum "REDasm-${VERSION}-linux-x86_64.AppImage" > "REDasm-${VERSION}-linux-x86_64.AppImage.sha256"
57+ sha256sum "REDasm-${VERSION}-windows-x86_64.zip" > "REDasm-${VERSION}-windows-x86_64.zip.sha256"
4058
41- - name : Sign artifacts
59+ - name : Sign checksums
4260 env :
61+ VERSION : ${{ steps.version.outputs.version }}
4362 GPG_PRIVATE_KEY : ${{ secrets.RD_GPG_PRIVATE_KEY }}
4463 GPG_PASSPHRASE : ${{ secrets.RD_GPG_PASSPHRASE }}
4564 run : |
4665 echo "$GPG_PRIVATE_KEY" | gpg --batch --import
4766 echo "$GPG_PASSPHRASE" | gpg --batch --pinentry-mode loopback \
48- --passphrase-fd 0 --detach-sign --armor REDasm-linux-x86_64.AppImage
67+ --passphrase-fd 0 --detach-sign --armor " REDasm-${VERSION}- linux-x86_64.AppImage.sha256"
4968 echo "$GPG_PASSPHRASE" | gpg --batch --pinentry-mode loopback \
50- --passphrase-fd 0 --detach-sign --armor REDasm-windows-x86_64.zip
69+ --passphrase-fd 0 --detach-sign --armor "REDasm-${VERSION}-windows-x86_64.zip.sha256"
70+
71+ - name : Verify signatures and checksums
72+ env :
73+ VERSION : ${{ steps.version.outputs.version }}
74+ run : |
75+ gpg --verify "REDasm-${VERSION}-linux-x86_64.AppImage.sha256.asc" "REDasm-${VERSION}-linux-x86_64.AppImage.sha256"
76+ gpg --verify "REDasm-${VERSION}-windows-x86_64.zip.sha256.asc" "REDasm-${VERSION}-windows-x86_64.zip.sha256"
77+ sha256sum -c "REDasm-${VERSION}-linux-x86_64.AppImage.sha256"
78+ sha256sum -c "REDasm-${VERSION}-windows-x86_64.zip.sha256"
79+
80+ - name : Verify signatures
81+ run : |
82+ gpg --verify "REDasm-linux-x86_64-${{ github.event.client_payload.tag }}.AppImage.asc" "REDasm-linux-x86_64-${{ github.event.client_payload.tag }}.AppImage"
83+ gpg --verify "REDasm-windows-x86_64-${{ github.event.client_payload.tag }}.zip.asc" "REDasm-windows-x86_64-${{ github.event.client_payload.tag }}.zip"
5184
5285 - name : Publish release
5386 uses : softprops/action-gh-release@v3
5992 prerelease : false
6093 draft : true
6194 files : |
62- REDasm-linux-x86_64.AppImage
63- REDasm-linux-x86_64.AppImage.asc
64- REDasm-windows-x86_64.zip
65- REDasm-windows-x86_64.zip.asc
95+ REDasm-${{ steps.version.outputs.version }}-linux-x86_64.AppImage
96+ REDasm-${{ steps.version.outputs.version }}-linux-x86_64.AppImage.sha256
97+ REDasm-${{ steps.version.outputs.version }}-linux-x86_64.AppImage.sha256.asc
98+ REDasm-${{ steps.version.outputs.version }}-windows-x86_64.zip
99+ REDasm-${{ steps.version.outputs.version }}-windows-x86_64.zip.sha256
100+ REDasm-${{ steps.version.outputs.version }}-windows-x86_64.zip.sha256.asc
101+
0 commit comments