Skip to content

Commit

Permalink
CI: fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Razon committed Jan 2, 2024
1 parent c44ffce commit f2b1f88
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/gh-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
exclude:
- platform: win
arch: arm64

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -33,25 +33,25 @@ jobs:

- uses: apple-actions/import-codesign-certs@v2
if: ${{ matrix.platform == 'macos' }}
with:
with:
p12-file-base64: ${{ secrets.APPLE_CERT_DATA }}
p12-password: ${{ secrets.APPLE_CERT_PASS }}

- name: Sign mac binaries
if: ${{ matrix.platform == 'macos' }}
env:
env:
CERT_CN: ${{ vars.APPLE_CERT_CN }}
run: |
tar -xf ./preevy-bin/preevy-${{ matrix.platform }}-${{ matrix.arch }}.tar
codesign --remove-signature ./preevy
security find-identity -v
codesign --verbose=4 --sign "$CERT_CN" ./preevy
tar -cf ./preevy-bin/preevy-${{ matrix.platform }}-${{ matrix.arch }}.tar ./preevy
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: preevy-bin
with:
name: preevy-bin-${{ matrix.platform }}-${{ matrix.arch }}
path: ./preevy-bin/**

release:
Expand All @@ -63,9 +63,11 @@ jobs:
- uses: depot/setup-action@v1
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: preevy-bin
with:
pattern: preevy-bin-*
path: ./preevy-bin
merge-multiple: true

- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit f2b1f88

Please sign in to comment.