Skip to content

Commit 2ff2568

Browse files
committed
Add release and release-plz workflows
1 parent 57019c4 commit 2ff2568

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

.github/workflows/release-plz.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Release-plz
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
10+
# Release unpublished packages.
11+
release-plz-release:
12+
name: Release-plz release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- &checkout
18+
name: Checkout repository
19+
uses: actions/checkout@v6
20+
with:
21+
fetch-depth: 0
22+
persist-credentials: false
23+
- &install-rust
24+
name: Install Rust toolchain
25+
uses: dtolnay/rust-toolchain@stable
26+
- name: Run release-plz
27+
uses: release-plz/[email protected]
28+
with:
29+
command: release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
33+
34+
# Create a PR with the new versions and changelog, preparing the next release.
35+
release-plz-pr:
36+
name: Release-plz PR
37+
runs-on: ubuntu-latest
38+
permissions:
39+
contents: write
40+
pull-requests: write
41+
concurrency:
42+
group: release-plz-${{ github.ref }}
43+
cancel-in-progress: false
44+
steps:
45+
- *checkout
46+
- *install-rust
47+
- name: Run release-plz
48+
uses: release-plz/[email protected]
49+
with:
50+
command: release-pr
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
permissions:
10+
contents: write
11+
uses: symposium-dev/package-agent-extension/.github/workflows/build.yml@v1
12+
with:
13+
musl: true # Use musl for static Linux binaries
14+
secrets: inherit

src/rust_analyzer_mcp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ struct FileOnlyInputs {
4747
pub file_path: String,
4848
}
4949

50+
/*
5051
#[derive(Serialize, Deserialize, JsonSchema)]
5152
struct RangeInputs {
5253
pub file_path: String,
@@ -55,6 +56,7 @@ struct RangeInputs {
5556
pub end_line: u32,
5657
pub end_character: u32,
5758
}
59+
*/
5860

5961
#[derive(Serialize, Deserialize, JsonSchema)]
6062
struct WorkspaceInputs {

0 commit comments

Comments
 (0)