Skip to content

Commit 595ccaf

Browse files
committed
chore: prepare for release
1 parent d88bc6e commit 595ccaf

File tree

6 files changed

+101
-2
lines changed

6 files changed

+101
-2
lines changed

.github/workflows/cd.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deploy
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
env:
11+
CARGO_INCREMENTAL: 0
12+
CARGO_NET_GIT_FETCH_WITH_CLI: true
13+
CARGO_NET_RETRY: 10
14+
CARGO_TERM_COLOR: always
15+
RUST_BACKTRACE: 1
16+
RUSTFLAGS: -D warnings
17+
RUSTUP_MAX_RETRIES: 10
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
23+
jobs:
24+
upload-assets:
25+
name: ${{ matrix.target }}
26+
if: startsWith(github.event.release.name, 'huly-coder-v')
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
matrix:
30+
include:
31+
- target: aarch64-unknown-linux-gnu
32+
os: ubuntu-22.04
33+
- target: aarch64-apple-darwin
34+
os: macos-13
35+
- target: x86_64-unknown-linux-gnu
36+
os: ubuntu-22.04
37+
- target: x86_64-apple-darwin
38+
os: macos-13
39+
- target: x86_64-pc-windows-msvc
40+
os: windows-2022
41+
timeout-minutes: 60
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
46+
- name: Install Rust toolchain
47+
uses: actions-rust-lang/setup-rust-toolchain@v1
48+
49+
- run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >> "${GITHUB_ENV}"
50+
if: endsWith(matrix.target, 'windows-msvc')
51+
52+
- uses: taiki-e/upload-rust-binary-action@v1
53+
with:
54+
bin: huly-coder
55+
target: ${{ matrix.target }}
56+
include: LICENSE,README.md,huly-coder.yaml
57+
tar: all
58+
zip: windows
59+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Build & Release"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
run-ci:
10+
uses: ./.github/workflows/ci.yml
11+
secrets: inherit
12+
13+
release-please:
14+
runs-on: ubuntu-latest
15+
needs: run-ci
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
steps:
20+
- uses: googleapis/release-please-action@v4
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.0"
3+
}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ repository = "https://github.com/hcengineering/huly-coder"
1010

1111
[package]
1212
name = "huly-coder"
13-
version = "0.1.0-beta"
13+
version = "0.1.0"
1414
edition = "2021"
1515
license = "MIT"
1616
homepage = "https://github.com/hcengineering/huly-coder"
1717
repository = "https://github.com/hcengineering/huly-coder"
1818
authors = ["Konstantin Zaitsev <[email protected]>"]
1919
description = "A lightweight autonomous AI coding agent with terminal-based UI, inspired by Codex and Cline."
20+
publish = false
2021

2122
[dependencies]
2223
rig-core = { git = "https://github.com/kosz78/rig.git", branch = "mcp", features = [

release-please-config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"packages": {
3+
".": {
4+
"changelog-path": "CHANGELOG.md",
5+
"release-type": "rust",
6+
"prerelease-type": "beta",
7+
"bump-minor-pre-major": false,
8+
"bump-patch-for-minor-pre-major": false,
9+
"draft": false,
10+
"prerelease": false
11+
}
12+
},
13+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
14+
}

0 commit comments

Comments
 (0)