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:
parent
8173e037d4
commit
6af39252ed
2
.github/workflows/publish-appimage.yml
vendored
2
.github/workflows/publish-appimage.yml
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user