-
Notifications
You must be signed in to change notification settings - Fork 982
202 lines (166 loc) · 6.2 KB
/
release.yml
File metadata and controls
202 lines (166 loc) · 6.2 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# ClawX Release Workflow
# Builds and publishes releases for macOS, Windows, and Linux
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
version:
description: 'Version to release (e.g., 1.0.0)'
required: true
permissions:
contents: write
jobs:
release:
strategy:
matrix:
include:
- os: macos-latest
platform: mac
- os: windows-latest
platform: win
- os: ubuntu-latest
platform: linux
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Download uv binaries for macOS
if: matrix.platform == 'mac'
run: pnpm run uv:download:mac
- name: Download uv binaries for Windows
if: matrix.platform == 'win'
run: pnpm run uv:download:win
- name: Download uv binaries for Linux
if: matrix.platform == 'linux'
run: pnpm run uv:download:linux
# macOS specific steps
- name: Build macOS
if: matrix.platform == 'mac'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Code signing
CSC_LINK: ${{ secrets.MAC_CERTS }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }}
# Notarization
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
# Increase file descriptor limit to handle large number of files during code signing
ulimit -n 65536
echo "File descriptor limit: $(ulimit -n)"
pnpm run package:mac
# Windows specific steps
- name: Build Windows
if: matrix.platform == 'win'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# For code signing (optional)
# CSC_LINK: ${{ secrets.WIN_CERTS }}
# CSC_KEY_PASSWORD: ${{ secrets.WIN_CERTS_PASSWORD }}
run: pnpm run package:win
# Linux specific steps
- name: Build Linux
if: matrix.platform == 'linux'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm run package:linux
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.platform }}
path: |
release/*.dmg
release/*.zip
release/*.exe
release/*.AppImage
release/*.deb
release/*.rpm
release/*.yml
release/*.yaml
retention-days: 7
publish:
needs: release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: release-artifacts
- name: List all downloaded artifacts
run: |
echo "=== All artifacts downloaded ==="
find release-artifacts/ -type f -exec ls -lh {} \;
echo ""
echo "=== File tree ==="
tree release-artifacts/ || find release-artifacts/ -print
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
release-artifacts/**/*.dmg
release-artifacts/**/*.zip
release-artifacts/**/*.exe
release-artifacts/**/*.AppImage
release-artifacts/**/*.deb
release-artifacts/**/*.rpm
release-artifacts/**/*.yml
release-artifacts/**/*.yaml
release-artifacts/**/*-blockmap
draft: false
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
generate_release_notes: true
body: |
## 🚀 ClawX ${{ github.ref_name }}
ClawX - Graphical AI Assistant based on OpenClaw
### 📦 Downloads
Please select the appropriate installer for your operating system and architecture:
#### macOS
- **Apple Silicon (M1/M2/M3/M4)**: `ClawX-*-darwin-arm64.dmg`
- **Intel (x64)**: `ClawX-*-darwin-x64.dmg`
#### Windows
- **Installer (x64)**: `ClawX-*-win-x64.exe`
- **Installer (ARM64)**: `ClawX-*-win-arm64.exe`
#### Linux
- **AppImage (x64)**: `ClawX-*-linux-x64.AppImage` (Universal format, recommended)
- **AppImage (ARM64)**: `ClawX-*-linux-arm64.AppImage`
- **Debian/Ubuntu (x64)**: `ClawX-*-linux-x64.deb`
- **Debian/Ubuntu (ARM64)**: `ClawX-*-linux-arm64.deb`
- **RPM (x64)**: `ClawX-*-linux-x64.rpm`
### 📝 Release Notes
See the auto-generated release notes below for detailed changes.
### ⚠️ Installation Notes
- **macOS**: On first launch, you may see "cannot verify developer". Go to System Preferences → Security & Privacy to allow the app to run
- **Windows**: SmartScreen may block the app. Click "More info" → "Run anyway" to proceed
- **Linux**: AppImage requires executable permission: `chmod +x ClawX-*.AppImage`
---
💬 Found an issue? Please submit an [Issue](https://github.com/${{ github.repository }}/issues)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}