Skip to content

Commit 5864262

Browse files
committed
Sign macOS build
macOS on arm64 requires code signing.
1 parent 79989f5 commit 5864262

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/assets/codesign.p12

2.61 KB
Binary file not shown.

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ jobs:
2525
- name: Build tldr-sharp
2626
run: |
2727
dotnet publish -c Release --self-contained false -o 'publish/${{ matrix.runtime }}' -r '${{ matrix.runtime }}'
28-
28+
- name: Sign macOS build
29+
if: ${{ startsWith(matrix.runtime, 'osx') }}
30+
uses: indygreg/apple-code-sign-action@v1
31+
with:
32+
input_path: publish/${{ matrix.runtime }}/tldr-sharp
33+
p12_file: .github/assets/codesign.p12
34+
p12_password: ${{ secrets.codesign_password }}
2935
- name: Cache Build
3036
uses: actions/cache/save@v3
3137
with:

0 commit comments

Comments
 (0)