Compare commits

...

5 Commits

Author SHA1 Message Date
2f4753d4e5 Merge branch 'main' into pierremtb/issue297 2023-08-25 22:52:06 -04:00
7838637929 Add ls call 2023-08-21 18:21:41 +00:00
3987ae91ed Fix typos 2023-08-21 17:49:28 +00:00
b6733ba3d5 Overwrite existing appimage 2023-08-21 17:40:22 +00:00
f49ef94775 Sign Linux builds
Fixes #297
2023-08-21 17:17:44 +00:00

View File

@ -115,6 +115,32 @@ jobs:
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
- name: Import AppImage GPG key
if: matrix.os == 'ubuntu-20.04'
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.APPIMAGE_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.APPIMAGE_GPG_PRIVATE_KEY_PASSPHRASE }}
- name: Generate signed AppImage over existing one
if: matrix.os == 'ubuntu-20.04'
env:
APPIMAGETOOL_SIGN_PASSPHRASE: ${{ secrets.APPIMAGE_GPG_PRIVATE_KEY_PASSPHRASE }}
VERSION_NO_V: ${{ needs.build-test-web.outputs.version }}
run: |
TOOL=appimagetool-x86_64.AppImage
APPIMAGE=kittycad-modeling-app_${VERSION_NO_V}_amd64.AppImage
pushd src-tauri/target/release/bundle/appimage
rm $APPIMAGE
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/$TOOL
chmod a+x $TOOL
gpg -K
./$TOOL --sign kittycad-modeling-app.AppDir $APPIMAGE
ls -l
chmod a+x $APPIMAGE
./$APPIMAGE --appimage-signature
popd
- uses: actions/upload-artifact@v3
with:
@ -182,10 +208,10 @@ jobs:
path: artifact
glob: '*/kittycad-modeling-app*'
parent: false
destination: dl.kittycad.io/releases/modeling-app/v${{ env.VERSION_NO_V }}
iAPPIMAGEnation: dl.kittycad.io/releases/modeling-app/v${{ env.VERSION_NO_V }}
- name: Upload update endpoint to public bucket
uses: google-github-actions/upload-cloud-storage@v1.0.3
with:
path: last_update.json
destination: dl.kittycad.io/releases/modeling-app
iAPPIMAGEnation: dl.kittycad.io/releases/modeling-app