Skip to content

Sign MacOS Binaries with JFrog Certificate #2

Sign MacOS Binaries with JFrog Certificate

Sign MacOS Binaries with JFrog Certificate #2

name: Sign MacOS Binaries
on: [push]
jobs:
# Sign the JFrog CLI binary for macOS
DeleteOldArtifacts:
- uses: kolpav/purge-artifacts-action@v1

Check failure on line 6 in .github/workflows/signMacOsBinaries.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/signMacOsBinaries.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
with:
token: ${{ secrets.JF_GIT_TOKEN }}
expire-in: 0 # Setting this to 0 will delete all artifacts
SignBinary:
# if: ${{ contains(github.event.head_commit.message, 'Bump version from') }}
name: Sign-JFrog-CLI-MacOS-Binary
runs-on: macos-latest
strategy:
matrix:
goarch: [arm64,amd64]
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
cache: false
- name: Set Environment Variable
run: echo "goarch=${{ matrix.goarch }}" >> $GITHUB_ENV
- name: Checkout Source
uses: actions/checkout@v4
- name: Build
run: ./build/build.sh
- name: Sign Binary
env:
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
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: jf-darwin-${{ matrix.goarch }}
path: ./jf
retention-days: 1