mirror of
https://github.com/coleam00/Archon
synced 2026-04-21 13:37:41 +00:00
- Replace all dynamous-community/remote-coding-agent references with coleam00/Archon - Replace all ghcr.io/dynamous-community/remote-coding-agent with ghcr.io/coleam00/archon - Change license from proprietary Dynamous to MIT - Fix cd directory name in docs (remote-coding-agent → Archon) - Remove hardcoded local paths from skills and docs - Add Windows x64 binary to release pipeline (cross-compiled from Linux) - Add --minify --bytecode flags to binary compilation - Create PowerShell install script (scripts/install.ps1) - Fix isBinaryBuild() detection for Bun 1.3.5+ (use import.meta.dir virtual FS check) - Scaffold Astro Starlight docs site at website/ (Astro 6 + Starlight 0.38) - Add deploy-docs.yml workflow for GitHub Pages - Update test.yml branch triggers (develop → dev) - Add install section with curl/PowerShell/Homebrew/Docker to README - Add badges and archon.diy docs link to README - Create SECURITY.md with vulnerability disclosure policy - Update CONTRIBUTING.md for public audience - Add website/ and eslint ignores for Astro-generated files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
160 lines
4.4 KiB
YAML
160 lines
4.4 KiB
YAML
name: Release CLI Binaries
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Version tag (e.g., v0.2.0)'
|
|
required: true
|
|
type: string
|
|
|
|
concurrency:
|
|
group: release-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
target: bun-linux-x64
|
|
binary: archon-linux-x64
|
|
- os: ubuntu-latest
|
|
target: bun-linux-arm64
|
|
binary: archon-linux-arm64
|
|
- os: ubuntu-latest
|
|
target: bun-windows-x64
|
|
binary: archon-windows-x64.exe
|
|
- os: macos-latest
|
|
target: bun-darwin-x64
|
|
binary: archon-darwin-x64
|
|
- os: macos-latest
|
|
target: bun-darwin-arm64
|
|
binary: archon-darwin-arm64
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.4
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Build binary
|
|
run: |
|
|
mkdir -p dist
|
|
bun build --compile --minify --bytecode --target=${{ matrix.target }} --outfile=dist/${{ matrix.binary }} packages/cli/src/cli.ts
|
|
|
|
- name: Upload binary artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.binary }}
|
|
path: dist/${{ matrix.binary }}
|
|
retention-days: 1
|
|
|
|
release:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Download all artifacts
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
path: dist
|
|
merge-multiple: true
|
|
|
|
- name: Generate checksums
|
|
run: |
|
|
cd dist
|
|
sha256sum archon-* > checksums.txt
|
|
cat checksums.txt
|
|
|
|
- name: Get version
|
|
id: version
|
|
run: |
|
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT
|
|
else
|
|
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
|
fi
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ steps.version.outputs.version }}
|
|
name: Archon CLI ${{ steps.version.outputs.version }}
|
|
draft: false
|
|
prerelease: ${{ contains(steps.version.outputs.version, '-') }}
|
|
generate_release_notes: true
|
|
files: |
|
|
dist/archon-*
|
|
dist/checksums.txt
|
|
body: |
|
|
## Installation
|
|
|
|
### Quick Install (Recommended)
|
|
|
|
**macOS / Linux**
|
|
```bash
|
|
curl -fsSL https://archon.diy/install | bash
|
|
```
|
|
|
|
**Windows (PowerShell)**
|
|
```powershell
|
|
irm https://archon.diy/install.ps1 | iex
|
|
```
|
|
|
|
**Homebrew (macOS / Linux)**
|
|
```bash
|
|
brew install coleam00/archon/archon
|
|
```
|
|
|
|
**Docker**
|
|
```bash
|
|
docker run --rm -v "$PWD:/workspace" ghcr.io/coleam00/archon:latest workflow list
|
|
```
|
|
|
|
### Manual Installation
|
|
|
|
**macOS (Apple Silicon)**
|
|
```bash
|
|
curl -fsSL https://github.com/coleam00/Archon/releases/latest/download/archon-darwin-arm64 -o /usr/local/bin/archon
|
|
chmod +x /usr/local/bin/archon
|
|
```
|
|
|
|
**macOS (Intel)**
|
|
```bash
|
|
curl -fsSL https://github.com/coleam00/Archon/releases/latest/download/archon-darwin-x64 -o /usr/local/bin/archon
|
|
chmod +x /usr/local/bin/archon
|
|
```
|
|
|
|
**Linux (x64)**
|
|
```bash
|
|
curl -fsSL https://github.com/coleam00/Archon/releases/latest/download/archon-linux-x64 -o /usr/local/bin/archon
|
|
chmod +x /usr/local/bin/archon
|
|
```
|
|
|
|
**Linux (ARM64)**
|
|
```bash
|
|
curl -fsSL https://github.com/coleam00/Archon/releases/latest/download/archon-linux-arm64 -o /usr/local/bin/archon
|
|
chmod +x /usr/local/bin/archon
|
|
```
|
|
|
|
**Windows (Manual)**
|
|
Download `archon-windows-x64.exe` from the assets below, rename to `archon.exe`, and add to your PATH.
|
|
|
|
### Verify installation
|
|
```bash
|
|
archon version
|
|
```
|