Skip to content

Commit 297e605

Browse files
committed
[Release] v0.5.0
1 parent e5a5447 commit 297e605

File tree

4 files changed

+52
-16
lines changed

4 files changed

+52
-16
lines changed

.github/workflows/release.yml

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ jobs:
3030
command: login
3131
args: ${{ secrets.CRATES_TOKEN }}
3232

33-
- name: Publish library to crates.io
34-
uses: actions-rs/cargo@v1
35-
with:
36-
command: publish
37-
args: --manifest-path core/Cargo.toml
33+
# - name: Publish library to crates.io
34+
# uses: actions-rs/cargo@v1
35+
# with:
36+
# command: publish
37+
# args: --manifest-path core/Cargo.toml
3838

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
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
4444

4545
- name: Bump version and push tag
4646
id: tag_version
@@ -49,11 +49,47 @@ jobs:
4949
github_token: ${{ secrets.PAT }}
5050
custom_tag: ${{ steps.read_toml.outputs.value }}
5151

52+
- name: Build changelog for main repository
53+
id: build_changelog
54+
uses: mikepenz/release-changelog-builder-action@v5
55+
with:
56+
token: ${{ secrets.PAT }}
57+
toTag: ${{ steps.tag_version.outputs.new_tag }}
58+
configurationJson: |
59+
{
60+
"categories": [
61+
{
62+
"title": "## What's Changed:",
63+
"labels": []
64+
}
65+
],
66+
"pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in #{{URL}}",
67+
"template": "#{{CHANGELOG}}\n\n**Full Changelog**: https://github.com/mistricky/CodeSnap/compare/#{{FROM_TAG}}...#{{TO_TAG}}"
68+
}
69+
5270
- name: Create a GitHub release
5371
uses: ncipollo/release-action@v1
5472
with:
5573
tag: ${{ steps.tag_version.outputs.new_tag }}
5674
name: Release ${{ steps.tag_version.outputs.new_tag }}
57-
generateReleaseNotes: true
5875
token: ${{ secrets.PAT }}
76+
body: |
77+
## 👋 Hi, there!
78+
Thanks for using CodeSnap! The most beautiful code screenshots tool, there are two ways to use CodeSnap:
79+
80+
Treat CodeSnap as library in your project by Cargo:
81+
82+
```bash
83+
Cargo add CodeSnap
84+
```
85+
86+
Or use CodeSnap as CLI tool installed globally:
87+
88+
**Cargo**
89+
```bash
90+
Cargo install CodeSnap
91+
```
92+
93+
Of course, you can install CodeSnap manually by downloading the following binaries.
5994
95+
${{steps.build_changelog.outputs.changelog}}

Cargo.lock

Lines changed: 2 additions & 2 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "codesnap-cli"
3-
version = "0.4.4"
3+
version = "0.5.0"
44
edition = "2021"
55
description = "CLI tools for generating beautiful code snapshots"
66
license = "MIT"
@@ -13,6 +13,6 @@ path = "src/main.rs"
1313
ansi_term = "0.12.1"
1414
anyhow = "1.0.91"
1515
clap = { version = "4.5.20", features = ["derive"] }
16-
codesnap = { path = "../core", version = "0.4.4" }
16+
codesnap = { path = "../core", version = "0.5.0" }
1717
home = "0.5.9"
1818
serde_json = "1.0.132"

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "codesnap"
3-
version = "0.4.4"
3+
version = "0.5.0"
44
edition = "2021"
55
description = "Pure Rust library for generating beautiful code snapshots"
66
license = "MIT"

0 commit comments

Comments
 (0)