Skip to content

Commit bb7cb73

Browse files
committed
[Chore] publish cli package while publish stage
1 parent 8cec219 commit bb7cb73

File tree

3 files changed

+23
-16
lines changed

3 files changed

+23
-16
lines changed

.github/workflows/release-lib.yml renamed to .github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Release CodeSnap to crates.io
33
on:
44
push:
55
paths:
6-
core/Cargo.toml
6+
- core/Cargo.toml
7+
- lib/Cargo.toml
78
branches:
89
- main
910

@@ -29,11 +30,18 @@ jobs:
2930
command: login
3031
args: ${{ secrets.CRATES_TOKEN }}
3132

32-
- uses: actions-rs/cargo@v1
33+
- name: Publish library to crates.io
34+
uses: actions-rs/cargo@v1
3335
with:
3436
command: publish
3537
args: --manifest-path core/Cargo.toml
3638

39+
- name: Publish cli to crates.io
40+
uses: actions-rs/cargo@v1
41+
with:
42+
command: publish
43+
args: --manifest-path cli/Cargo.toml
44+
3745
- name: Bump version and push tag
3846
id: tag_version
3947
uses: mathieudutour/[email protected]

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[package]
2-
name = "cli"
2+
name = "codesnap-cli"
33
version = "0.1.0"
44
edition = "2021"
55
description = "CLI tools for generating beautiful code snapshots"
66
license = "MIT"
77

8-
98
[[bin]]
109
name = "codesnap"
1110
path = "src/main.rs"
@@ -14,5 +13,5 @@ path = "src/main.rs"
1413
ansi_term = "0.12.1"
1514
anyhow = "1.0.91"
1615
clap = { version = "4.5.20", features = ["derive"] }
17-
codesnap = { path = "../core", version = "0.2.0" }
16+
codesnap = { path = "../core", version = "0.2.2" }
1817
serde_json = "1.0.132"

0 commit comments

Comments
 (0)