fix(ci): change keychain name

This commit is contained in:
Federico Terzi 2021-10-04 19:03:09 +02:00
parent 8cac8e7479
commit 6f142681b5

View File

@ -153,10 +153,11 @@ jobs:
MACOS_CI_KEYCHAIN_PWD: ${{ secrets.MACOS_CI_KEYCHAIN_PWD }} MACOS_CI_KEYCHAIN_PWD: ${{ secrets.MACOS_CI_KEYCHAIN_PWD }}
run: | run: |
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12 echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
security create-keychain -p $MACOS_CI_KEYCHAIN_PWD build.keychain security default-keychain -s build.keychain security create-keychain -p $MACOS_CI_KEYCHAIN_PWD buildespanso.keychain
security unlock-keychain -p $MACOS_CI_KEYCHAIN_PWD build.keychain security default-keychain -s buildespanso.keychain
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign security unlock-keychain -p $MACOS_CI_KEYCHAIN_PWD buildespanso.keychain
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_CI_KEYCHAIN_PWD build.keychain security import certificate.p12 -k buildespanso.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_CI_KEYCHAIN_PWD buildespanso.keychain
/usr/bin/codesign --force -s "Espanso CI Self-Signed" target/mac/Espanso.app -v /usr/bin/codesign --force -s "Espanso CI Self-Signed" target/mac/Espanso.app -v
- name: Create ZIP archive - name: Create ZIP archive
run: | run: |