Repository navigation
94 lines (74 loc) · 2.92 KB
/
Copy pathrelease.yml
File metadata and controls
94 lines (74 loc) · 2.92 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
name: Automated Release Pipeline
on:
push:
tags:
- 'v*'
jobs:
release:
name: Build & Release Standalone Binaries
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'pnpm'
- name: Install Monorepo Dependencies
run: pnpm install --frozen-lockfile
- name: Build Workspace Packages
run: pnpm run build
- name: Package Standalone CLI Executables
run: pnpm --filter @collagility/cli package
- name: Extract Changelog Entry
id: changelog
run: |
# Extract the changelog block for the current tag
TAG="${{ github.ref_name }}"
VERSION="${TAG#v}"
BODY=$(awk "/## \[v${VERSION}\]/{found=1; next} found && /^---/{exit} found{print}" CHANGELOG.md)
echo "CHANGELOG_BODY<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create GitHub Release & Upload Assets
uses: softprops/action-gh-release@v2
with:
name: Collagility ${{ github.ref_name }}
draft: false
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
files: |
apps/cli/dist/releases/collagility-linux-x64.tar.gz
apps/cli/dist/releases/collagility-linux-arm64.tar.gz
apps/cli/dist/releases/collagility-macos-x64.tar.gz
apps/cli/dist/releases/collagility-macos-arm64.tar.gz
apps/cli/dist/releases/collagility-windows-x64.zip
body: |
# Collagility ${{ github.ref_name }}
> The Multiplayer Terminal for AI Coding Agents
## Install / Update
```bash
curl -fsSL https://raw.githubusercontent.com/JhaSourav07/Collagility/main/install.sh | bash
```
The installer auto-detects your OS & architecture, downloads the matching binary, and installs it to `~/.local/bin/collagility`.
---
${{ steps.changelog.outputs.CHANGELOG_BODY }}
---
## Release Assets
| Platform | Architecture | File |
|---|---|---|
| Linux | x64 (AMD64) | `collagility-linux-x64.tar.gz` |
| Linux | arm64 (AArch64) | `collagility-linux-arm64.tar.gz` |
| macOS | Intel x64 | `collagility-macos-x64.tar.gz` |
| macOS | Apple Silicon (M1/M2/M3) | `collagility-macos-arm64.tar.gz` |
| Windows | x64 | `collagility-windows-x64.zip` |
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}