mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Import and unlock Macos keychain
Contributes to CURA-9365
This commit is contained in:
parent
3dc646874d
commit
bbcba0c7a0
1 changed files with 10 additions and 0 deletions
10
.github/workflows/cura-installer.yml
vendored
10
.github/workflows/cura-installer.yml
vendored
|
@ -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 }}
|
||||
MACOS_CERT_PASS: ${{ secrets.MACOS_CERT_PASS }}
|
||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
|
||||
jobs:
|
||||
|
@ -114,6 +115,15 @@ jobs:
|
|||
if: ${{ runner.os == 'Linux' }}
|
||||
run: echo -n "$GPG_PRIVATE_KEY" | base64 --decode | gpg --import
|
||||
|
||||
- name: Configure Macos keychain (Bash)
|
||||
if: ${{ runner.os == 'Macos' }}
|
||||
run: |
|
||||
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
|
||||
echo -n "$MACOS_CERT_P12" | base64 --decode --output $CERTIFICATE_PATH
|
||||
security create-keychain -p $MACOS_CERT_PASS $CERTIFICATE_PATH
|
||||
security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
|
||||
security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
|
||||
|
||||
- name: Clean Conan local cache
|
||||
if: ${{ inputs.conan_clean_local_cache }}
|
||||
run: conan remove "*" -f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue