Skip to content

Commit 8c55de2

Browse files
authored
Cache KDE Neon GPG key in AppImage workflow (#500)
Add actions/cache@v4 to build-appimage.yml to store the KDE Neon GPG key. Update the repository setup step to use the cached key if it exists, minimizing dependency on archive.neon.kde.org during CI runs.
1 parent 02b1351 commit 8c55de2

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build-appimage.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,19 @@ jobs:
2828
create-symlink: true
2929
key: ${{ github.job }}
3030

31+
- name: Cache KDE Neon GPG key
32+
id: cache-kde-neon-key
33+
uses: actions/cache@v4
34+
with:
35+
path: kde-neon.gpg
36+
key: kde-neon-key-v1
37+
3138
- name: Add KDE Neon repository
3239
run: |
33-
curl -sSfL --retry 5 --retry-delay 5 https://archive.neon.kde.org/public.key | sudo gpg --dearmor --yes -o /usr/share/keyrings/kde-neon.gpg
40+
if [ ! -f kde-neon.gpg ]; then
41+
curl -sSfL --retry 5 --retry-delay 5 https://archive.neon.kde.org/public.key | gpg --dearmor --yes -o kde-neon.gpg
42+
fi
43+
sudo cp kde-neon.gpg /usr/share/keyrings/kde-neon.gpg
3444
echo "deb [signed-by=/usr/share/keyrings/kde-neon.gpg] http://archive.neon.kde.org/user jammy main" | sudo tee /etc/apt/sources.list.d/kde-neon.list
3545
sudo apt update -qq
3646

0 commit comments

Comments
 (0)