1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-16 04:02:15 +00:00

Only sign appimage if the signing key is available

This commit is contained in:
Brenden Matthews 2024-02-29 09:04:51 -05:00
parent 8173e037d4
commit 6af39252ed
2 changed files with 8 additions and 1 deletions

View File

@ -78,6 +78,8 @@ jobs:
id: git-version id: git-version
run: echo "GIT_VERSION=$(git describe --tags)" >> $GITHUB_ENV run: echo "GIT_VERSION=$(git describe --tags)" >> $GITHUB_ENV
- name: Import GPG Deploy Key - name: Import GPG Deploy Key
# only run on main branch
if: github.ref == 'refs/heads/main')
run: | run: |
echo "${{ secrets.GPG_DEPLOY_KEY }}" > appimage/secret.gpg echo "${{ secrets.GPG_DEPLOY_KEY }}" > appimage/secret.gpg
gpg --import appimage/secret.gpg gpg --import appimage/secret.gpg

View File

@ -74,7 +74,12 @@ wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appima
chmod +x appimagetool-x86_64.AppImage chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage AppDir --sign --sign-key E3034071 GPG_KEY=E3034072
if gpg --list-keys ${GPG_KEY}; then
./appimagetool-x86_64.AppImage AppDir --sign --sign-key ${GPG_KEY}
else
./appimagetool-x86_64.AppImage AppDir
fi
for f in conky*.AppImage for f in conky*.AppImage
do do