Skip to content

Commit 94c3165

Browse files
committed
Add to release
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 5aa907b commit 94c3165

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

.github/workflows/release.yaml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,50 @@ jobs:
2323
version: v2.11.0
2424
args: release --clean
2525
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
launcher-build-darwin:
28+
runs-on: macos-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v5
32+
with:
33+
fetch-depth: 0
34+
- name: Set up Go
35+
uses: actions/setup-go@v5
36+
with:
37+
go-version: 1.23
38+
- name: Build launcher for macOS ARM64
39+
run: |
40+
make create-dmg
41+
- name: Upload DMG to Release
42+
uses: actions/upload-release-asset@v1
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
with:
46+
url: ${{ github.event.release.upload_url }}
47+
asset_path: ./dist/LocalAI-Launcher.dmg
48+
asset_name: LocalAI-Launcher.dmg
49+
asset_content_type: application/octet-stream
50+
launcher-build-linux:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v5
55+
with:
56+
fetch-depth: 0
57+
- name: Set up Go
58+
uses: actions/setup-go@v5
59+
with:
60+
go-version: 1.23
61+
- name: Build launcher for Linux
62+
run: |
63+
make build-launcher-linux
64+
- name: Upload Linux launcher artifacts
65+
uses: actions/upload-release-asset@v1
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
with:
69+
url: ${{ github.event.release.upload_url }}
70+
asset_path: ./local-ai-launcher-linux.tar.xz
71+
asset_name: LocalAI-Launcher-linux.tar.xz
72+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)