Skip to content

Commit

Permalink
[Release] v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Nov 22, 2024
1 parent 8c853f7 commit 5449b6d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 23 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
command: login
args: ${{ secrets.CRATES_TOKEN }}

- name: Publish library to crates.io
uses: actions-rs/cargo@v1
with:
command: publish
args: --manifest-path core/Cargo.toml

- name: Publish cli to crates.io
uses: actions-rs/cargo@v1
with:
command: publish
args: --manifest-path cli/Cargo.toml
# - name: Publish library to crates.io
# uses: actions-rs/cargo@v1
# with:
# command: publish
# args: --manifest-path core/Cargo.toml

# - name: Publish cli to crates.io
# uses: actions-rs/cargo@v1
# with:
# command: publish
# args: --manifest-path cli/Cargo.toml

- name: Bump version and push tag
id: tag_version
Expand All @@ -59,12 +59,11 @@ jobs:
{
"categories": [
{
"title": "## 🚀 What's Changed in ${{ steps.tag_version.outputs.new_tag }}:",
"title": "## What's Changed:",
"labels": []
}
],
"pr_template": "- #{{TITLE}} by #{{AUTHOR}} in #{{NUMBER}}",
"template": "#{{CHANGELOG}}\n\n**Full Changelog**: https://github.com/mistricky/CodeSnap/compare/#{{FROM_TAG}}...#{{TO_TAG}}"
"pr_template": "- #{{TITLE}} by #{{AUTHOR}} in #{{NUMBER}}"
}
- name: Create a GitHub release
Expand All @@ -75,22 +74,21 @@ jobs:
token: ${{ secrets.PAT }}
body: |
## 👋 Hi, there!
Thanks for using CodeSnap! The most beautiful code screenshots tool.
Thanks for using CodeSnap! The most beautiful code screenshots tool, there are two ways to use CodeSnap:
## 💻 Getting started
Treat CodeSnap as library in your project by Cargo:
```bash
Cargo add CodeSnap
```
Use CodeSnap as CLI tool installed globally:
Or use CodeSnap as CLI tool installed globally:
**Cargo**
```bash
Cargo install CodeSnap
```
Or you can install CodeSnap manually by downloading the following binaries.
Of course, you can install CodeSnap manually by downloading the following binaries.
${{steps.build_changelog.outputs.changelog}}
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "codesnap-cli"
version = "0.4.4"
version = "0.5.0"
edition = "2021"
description = "CLI tools for generating beautiful code snapshots"
license = "MIT"
Expand All @@ -13,6 +13,6 @@ path = "src/main.rs"
ansi_term = "0.12.1"
anyhow = "1.0.91"
clap = { version = "4.5.20", features = ["derive"] }
codesnap = { path = "../core", version = "0.4.4" }
codesnap = { path = "../core", version = "0.5.0" }
home = "0.5.9"
serde_json = "1.0.132"
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "codesnap"
version = "0.4.4"
version = "0.5.0"
edition = "2021"
description = "Pure Rust library for generating beautiful code snapshots"
license = "MIT"
Expand Down

0 comments on commit 5449b6d

Please sign in to comment.