Created
June 14, 2020 23:11
-
-
Save bacongravy/29eef71ba121d8e97364d65a2e9ba895 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
security create-keychain -p "" build.keychain | |
security list-keychains -s build.keychain | |
security default-keychain -s build.keychain | |
security unlock-keychain -p "" build.keychain | |
security set-keychain-settings | |
security import <(echo $SIGNING_CERTIFICATE_P12_DATA | base64 --decode) \ | |
-f pkcs12 \ | |
-k build.keychain \ | |
-P $SIGNING_CERTIFICATE_PASSWORD \ | |
-T /usr/bin/codesign | |
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain |
Check if you're passing the right environment to github action. That was the error for me
jobs:
build_with_signing:
runs-on: macos-latest
###This fixed it for me###
environment: stage
steps:
- name: Checkout repository
uses: actions/checkout@v4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has stopped working with the error
Does anyone know if something has changed recently in github actions?