Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Yshayy authored Aug 27, 2023
1 parent ae87035 commit 17d3458
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/gh-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ jobs:
tar -xf ./preevy-bin/preevy-${{ matrix.platform }}-${{ matrix.arch }}.tar
codesign --remove-signature ./preevy
echo $CERT_DATA | base64 --decode > certificate.p12
security create-keychain -p temp temp.keychain
security import certificate.p12 -k temp.keychain -P $CERT_PASS -T /usr/bin/codesign
codesign --keychain temp.keychain --sign $CERT_CN ./preevy
security delete-keychain temp.keychain
security import certificate.p12 -k ~/Library/Keychains/build.keychain -P "${{ secrets.CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign
security create-keychain -p actions build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p actions build.keychain
security set-keychain-settings -t 3600 -l ~/Library/Keychains/build.keychain
security find-identity -v
codesign --keychain build.keychain --sign $CERT_CN ./preevy
security delete-keychain build.keychain
rm certificate.p12
tar -cf ./preevy-bin/preevy-${{ matrix.platform }}-${{ matrix.arch }}.tar ./preevy
Expand Down

0 comments on commit 17d3458

Please sign in to comment.