Просмотр исходного кода

Install GPG key Linux

Obtained by performing the following commands

```
gpg --import private-gpg.key
gpg --armor --export-secret-key -u <key_id_shown_when_run_previous_cmd>
```

Contributes to CURA-9365
j.spijker@ultimaker.com 2 лет назад
Родитель
Сommit
42b5aa491d
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      .github/workflows/cura-installer.yml

+ 5 - 0
.github/workflows/cura-installer.yml

@@ -44,6 +44,7 @@ env:
     MAC_NOTARIZE_USER: ${{ secrets.MAC_NOTARIZE_USER }}
     MAC_NOTARIZE_PASS: ${{ secrets.MAC_NOTARIZE_PASS }}
     MACOS_CERT_P12: ${{ secrets.MACOS_CERT_P12 }}
+    GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
 
 jobs:
     cura-installer-create:
@@ -109,6 +110,10 @@ jobs:
                     chmod +x $GITHUB_WORKSPACE/appimagetool
                     echo "APPIMAGETOOL_LOCATION=$GITHUB_WORKSPACE/appimagetool" >> $GITHUB_ENV
 
+            -   name: Configure GPG Key Linux (Bash)
+                if: ${{ runner.os == 'Linux' }}
+                run: echo -n "GPG_PRIVATE_KEY" | base64 --decode | gpg --import
+
             -   name: Clean Conan local cache
                 if: ${{ inputs.conan_clean_local_cache }}
                 run: conan remove "*" -f