Skip to content

Commit 18288eb

Browse files
committed
ci: add macos package release job
1 parent 77b55ee commit 18288eb

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,30 @@ jobs:
3434
else
3535
gh release create "$TAG_NAME" dist/* --title "$TAG_NAME" --generate-notes
3636
fi
37+
macos-pkg:
38+
needs: build
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
include:
43+
- arch: amd64
44+
runner: macos-15-intel
45+
- arch: arm64
46+
runner: macos-15
47+
runs-on: ${{ matrix.runner }}
48+
steps:
49+
- uses: actions/checkout@v4
50+
with:
51+
fetch-depth: 0
52+
- uses: actions/setup-go@v5
53+
with:
54+
go-version: "1.26.x"
55+
- name: Build macOS pkg
56+
env:
57+
MACOS_PKG_ARCHES: ${{ matrix.arch }}
58+
run: scripts/build-macos-pkg.sh
59+
- name: Upload macOS pkg
60+
env:
61+
GH_TOKEN: ${{ github.token }}
62+
TAG_NAME: ${{ github.ref_name }}
63+
run: gh release upload "$TAG_NAME" dist/*.pkg --clobber

0 commit comments

Comments
 (0)