From f2b1f88935e7de5b586abc8237d0163b90366e15 Mon Sep 17 00:00:00 2001 From: Roy Razon Date: Tue, 2 Jan 2024 14:55:26 +0200 Subject: [PATCH] CI: fix release --- .github/workflows/gh-release.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gh-release.yaml b/.github/workflows/gh-release.yaml index 88ec89ce..9376a0aa 100644 --- a/.github/workflows/gh-release.yaml +++ b/.github/workflows/gh-release.yaml @@ -20,7 +20,7 @@ jobs: exclude: - platform: win arch: arm64 - + steps: - name: Checkout uses: actions/checkout@v4 @@ -33,13 +33,13 @@ 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 @@ -47,11 +47,11 @@ jobs: 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: @@ -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: