File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
GitHub One Monokai.xcodeproj/project.xcworkspace/xcuserdata/cpea2506.xcuserdatad Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 36
36
env :
37
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
38
run : pnpm build
39
+ - name : Install the Apple certificate and provisioning profile
40
+ env :
41
+ BUILD_CERTIFICATE_BASE64 : ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
42
+ P12_PASSWORD : ${{ secrets.P12_PASSWORD }}
43
+ BUILD_PROVISION_PROFILE_BASE64 : ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }}
44
+ KEYCHAIN_PASSWORD : ${{ secrets.KEYCHAIN_PASSWORD }}
45
+ run : |
46
+ # create variables
47
+ CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
48
+ PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
49
+ KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
50
+
51
+ # import certificate and provisioning profile from secrets
52
+ echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
53
+ echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
54
+
55
+ # create temporary keychain
56
+ security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
57
+ security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
58
+ security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
59
+
60
+ # import certificate to keychain
61
+ security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
62
+ security list-keychain -d user -s $KEYCHAIN_PATH
63
+
64
+ # apply provisioning profile
65
+ mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
66
+ cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
39
67
- name : Xcode build
40
68
uses : sersoft-gmbh/xcodebuild-action@v2
41
69
with :
You can’t perform that action at this time.
0 commit comments