diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index 34157a70793..4fe227756c3 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -168,14 +168,22 @@ jobs: with: name: ${{ steps.filename.outputs.LINUX }}-AppImage path: installers + + - name: Download linux installer jobs asc artifacts + uses: actions/download-artifact@v2 + with: + name: ${{ steps.filename.outputs.LINUX }}-asc + path: installers - name: Rename Linux installer to nightlies run: | mv installers/${{ steps.filename.outputs.LINUX }}.AppImage installers/${{ steps.filename.outputs.NIGHTLY_NAME }}-linux-X64.AppImage + mv installers/${{ steps.filename.outputs.LINUX }}.AppImage.asc installers/${{ steps.filename.outputs.NIGHTLY_NAME }}-linux-X64.AppImage.asc - name: Update nightly release for Linux run: | gh release upload nightly installers/${{ steps.filename.outputs.NIGHTLY_NAME }}-linux-X64.AppImage --clobber + gh release upload nightly installers/${{ steps.filename.outputs.NIGHTLY_NAME }}-linux-X64.AppImage.asc --clobber env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8b2f30e3ac0..719a07250cb 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -257,6 +257,14 @@ jobs: dist/${{ steps.filename.outputs.INSTALLER_FILENAME }}.AppImage retention-days: 5 + - name: Upload the asc + uses: actions/upload-artifact@v3 + with: + name: ${{ steps.filename.outputs.INSTALLER_FILENAME }}-asc + path: | + dist/${{ steps.filename.outputs.INSTALLER_FILENAME }}.AppImage.asc + retention-days: 5 + - name: Write the run info shell: python run: | diff --git a/packaging/AppImage-builder/create_appimage.py b/packaging/AppImage-builder/create_appimage.py index 819ec0b7660..da146fa8ab2 100644 --- a/packaging/AppImage-builder/create_appimage.py +++ b/packaging/AppImage-builder/create_appimage.py @@ -38,7 +38,7 @@ def build_appimage(dist_path, version, appimage_filename): """ generate_appimage_builder_config(dist_path, version, appimage_filename) create_appimage() - sign_appimage(dist_path, appimage_filename) + sign_appimage(appimage_filename) def generate_appimage_builder_config(dist_path, version, appimage_filename): @@ -85,7 +85,7 @@ def create_appimage(): raise RuntimeError(f"The AppImageTool command returned non-zero: {result}") -def sign_appimage(dist_path, appimage_filename): +def sign_appimage(appimage_filename): command = ["gpg", "--yes", "--armor", "--detach-sig", appimage_filename] result = subprocess.call(command) if result != 0: