Skip to content

Commit 2c0c591

Browse files
committed
codesign
1 parent d28d32c commit 2c0c591

File tree

1 file changed

+49
-12
lines changed

1 file changed

+49
-12
lines changed

.github/workflows/jetbrains-release.yaml

+49-12
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,29 @@ jobs:
5050
# with:
5151
# ref: ${{ github.event.release.tag_name }}
5252

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+
5376
# Validate wrapper
5477
- name: Gradle Wrapper Validation
5578
uses: gradle/actions/wrapper-validation@v3
@@ -151,6 +174,20 @@ jobs:
151174
cd ../../binary
152175
npm run build
153176
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+
154191
# - name: Sign darwin-arm64 binary
155192
# uses: lando/code-sign-action@v2
156193
# with:
@@ -164,18 +201,18 @@ jobs:
164201
# apple-product-id: dev.continue.continue-binary
165202
# options: --options runtime --entitlements entitlements.xml
166203

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
179216

180217
# Build plugin
181218
- name: Build plugin

0 commit comments

Comments
 (0)