Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Release

on:
push:
tags:
- 'v*'

env:
CARGO_TERM_COLOR: always
BINARY_NAME: claude-sessions

jobs:
build:
name: Build (${{ matrix.target }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact_name: claude-sessions-linux-x86_64
- os: macos-latest
target: x86_64-apple-darwin
artifact_name: claude-sessions-macos-x86_64
- os: macos-latest
target: aarch64-apple-darwin
artifact_name: claude-sessions-macos-aarch64

steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
run: rustup target add ${{ matrix.target }}

- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}

- name: Build
run: cargo build --release --target ${{ matrix.target }}

- name: Prepare artifact
run: |
mkdir -p artifacts
cp target/${{ matrix.target }}/release/${{ env.BINARY_NAME }} artifacts/${{ matrix.artifact_name }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: artifacts/${{ matrix.artifact_name }}

release:
name: Create 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: artifacts
merge-multiple: true

- name: Generate checksums
run: |
cd artifacts
sha256sum * > checksums-sha256.txt

- name: Create Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
body: |
## Installation

Download the appropriate binary for your platform and make it executable:

```bash
chmod +x claude-sessions-*
```

## Verify Checksums

After downloading, verify the integrity of your download:

```bash
# Download checksums-sha256.txt, then:
sha256sum -c checksums-sha256.txt --ignore-missing
```

---

files: artifacts/*
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,17 @@ just check # Run fmt, lint, and tests
just install # Install locally
```

## License
### Creating a Release

MIT
Releases are automated via GitHub Actions. To create a new release:

## Contributing
1. Update the version in `Cargo.toml`
2. Commit and tag:
```bash
git add Cargo.toml
git commit -m "Bump version to X.Y.Z"
git tag vX.Y.Z
git push origin main --tags
```

Contributions are welcome! Please open an issue or submit a pull request.
The workflow will automatically build binaries for all platforms and create a GitHub release with checksums.