Skip to content

Commit d859500

Browse files
authored
Update config.yml
1 parent e37cab9 commit d859500

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.circleci/config.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ jobs:
1919
- checkout
2020
- run: sudo npm i -g yarn
2121
- run: |
22-
security create-keychain -p travis build.keychain
23-
security default-keychain -s build.keychain
24-
security unlock-keychain -p travis build.keychain
25-
echo $CERTIFICATE_OSX_P12 | base64 --decode > certificate.p12
26-
security import certificate.p12 -k build.keychain -P $CERTIFICATE_OSX_PASSWORD -T /usr/bin/codesign
27-
# needed for signing in CI environments (don't ask...)
28-
security set-key-partition-list -S apple-tool:,apple: -s -k travis build.keychain
22+
if [[ -z "$CIRCLE_PULL_REQUEST" && "$CIRCLE_BRANCH" == "master" ]]
23+
then
24+
security create-keychain -p travis build.keychain
25+
security default-keychain -s build.keychain
26+
security unlock-keychain -p travis build.keychain
27+
echo $CERTIFICATE_OSX_P12 | base64 --decode > certificate.p12
28+
security import certificate.p12 -k build.keychain -P $CERTIFICATE_OSX_PASSWORD -T /usr/bin/codesign
29+
# needed for signing in CI environments (don't ask...)
30+
security set-key-partition-list -S apple-tool:,apple: -s -k travis build.keychain
31+
fi
2932
- run: sudo npm i -g yarn
3033
# needed for release process
3134
- run: brew install gettext

0 commit comments

Comments
 (0)