50
50
# with:
51
51
# ref: ${{ github.event.release.tag_name }}
52
52
53
+ - name : Import Apple certificate
54
+ uses : apple-actions/import-codesign-certs@v3
55
+ with :
56
+ keychain : ${{ github.run_id }}
57
+ keychain-password : ${{ github.run_id }}
58
+ p12-file-base64 : ${{ secrets.APPLE_CERT_DATA }}
59
+ p12-password : ${{ secrets.APPLE_CERT_PASSWORD }}
60
+
61
+ # - name: Download artifact
62
+ # env:
63
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64
+ # OWNER: continuedev
65
+ # REPO: continue
66
+ # ARTIFACT_ID: 1822461754
67
+ # run: |
68
+ # curl -L \
69
+ # -H "Authorization: token $GITHUB_TOKEN" \
70
+ # -H "Accept: application/vnd.github+json" \
71
+ # -o artifact.zip \
72
+ # "https://api.github.com/repos/continuedev/continue/actions/artifacts/1822461754/zip"
73
+ # unzip artifact.zip
74
+ # shell: bash
75
+
53
76
# Validate wrapper
54
77
- name : Gradle Wrapper Validation
55
78
uses : gradle/actions/wrapper-validation@v3
@@ -151,6 +174,20 @@ jobs:
151
174
cd ../../binary
152
175
npm run build
153
176
177
+ - name : Code sign darwin-arm64 binary
178
+ run : |
179
+ echo "Signing executable with keychain: ${{ github.run_id }}"
180
+ codesign --sign - ../../binary/bin/darwin-x64/continue-binary
181
+ codesign --sign - ../../binary/bin/darwin-arm64/continue-binary
182
+
183
+ - name : Validate codesigning
184
+ run : |
185
+ echo "Validating codesigning for darwin-x64 binary"
186
+ codesign -dv --verbose=4 ../../binary/bin/darwin-x64/continue-binary
187
+
188
+ echo "Validating codesigning for darwin-arm64 binary"
189
+ codesign -dv --verbose=4 ../../binary/bin/darwin-arm64/continue-binary
190
+
154
191
# - name: Sign darwin-arm64 binary
155
192
# uses: lando/code-sign-action@v2
156
193
# with:
@@ -164,18 +201,18 @@ jobs:
164
201
# apple-product-id: dev.continue.continue-binary
165
202
# options: --options runtime --entitlements entitlements.xml
166
203
167
- - name : Sign darwin-x64 binary
168
- uses : lando/code-sign-action@v2
169
- with :
170
- file : ./binary/bin/darwin-x64/continue-binary
171
- certificate-data : ${{ secrets.APPLE_CERT_DATA }}
172
- certificate-password : ${{ secrets.APPLE_CERT_PASSWORD }}
173
- apple-notary-user : ${{ secrets.APPLE_NOTARY_USER }}
174
- apple-notary-password : ${{ secrets.APPLE_NOTARY_PASSWORD }}
175
- apple-notary-tool : altool
176
- apple-team-id : 43XFLY66ZD
177
- apple-product-id : dev.continue.continue-binary
178
- options : --options runtime --entitlements entitlements.xml
204
+ # - name: Sign darwin-x64 binary
205
+ # uses: lando/code-sign-action@v2
206
+ # with:
207
+ # file: ./binary/bin/darwin-x64/continue-binary
208
+ # certificate-data: ${{ secrets.APPLE_CERT_DATA }}
209
+ # certificate-password: ${{ secrets.APPLE_CERT_PASSWORD }}
210
+ # apple-notary-user: ${{ secrets.APPLE_NOTARY_USER }}
211
+ # apple-notary-password: ${{ secrets.APPLE_NOTARY_PASSWORD }}
212
+ # apple-notary-tool: altool
213
+ # apple-team-id: 43XFLY66ZD
214
+ # apple-product-id: dev.continue.continue-binary
215
+ # options: --options runtime --entitlements entitlements.xml
179
216
180
217
# Build plugin
181
218
- name : Build plugin
0 commit comments