-
Notifications
You must be signed in to change notification settings - Fork 236
48 lines (43 loc) · 1.34 KB
/
signMacOsBinaries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Sign MacOS Binaries
on: [ push ]
jobs:
DeleteOldArtifacts:
- name: Delete-Old-Artifacts
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