From f4f78e1aa630c57739b94602dfa29da022740c9d Mon Sep 17 00:00:00 2001 From: delarea Date: Mon, 3 Jun 2024 15:10:33 +0300 Subject: [PATCH] Upload artifact --- .github/workflows/signMacOsBinaries.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/signMacOsBinaries.yml b/.github/workflows/signMacOsBinaries.yml index 52e3cc7aa..0a1b82522 100644 --- a/.github/workflows/signMacOsBinaries.yml +++ b/.github/workflows/signMacOsBinaries.yml @@ -1,10 +1,12 @@ name: Sign MacOS Binaries -on: - workflow_dispatch: +on: [push] jobs: SignBinary: name: Sign-JFrog-CLI-MacOS-Binary - runs-on: macos-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, macos-arm64] steps: - name: Setup Go uses: actions/setup-go@v5 @@ -23,4 +25,13 @@ jobs: APPLE_CERT_DATA: ${{ secrets.APPLE_CERT_DATA }} APPLE_CERT_PASSWORD: ${{ secrets.APPLE_CERT_PASSWORD }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} - run: ./build/macOsSign/signMacOsBinary.sh \ No newline at end of file + run: ./build/macOsSign/signMacOsBinary.sh + + - name: Upload Artifact + - uses: actions/upload-artifact@v4 + with: + name: jfrog-cli-${{ matrix.os }} + # A file, directory or wildcard pattern that describes what to upload + # Required. + path: ./jfrog-cli + retention-days: 1