Skip to content

Sign MacOS Binaries with JFrog Certificate #4

Sign MacOS Binaries with JFrog Certificate

Sign MacOS Binaries with JFrog Certificate #4

name: Sign MacOS Binaries
on: [ push ]
jobs:
DeleteOldArtifacts:
- name: Delete-Old-Artifacts

Check failure on line 5 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 5
runs-on: ubuntu-latest
steps:
- uses: kolpav/purge-artifacts-action@v1
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') }}
needs: DeleteOldArtifacts
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