diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bf23d5..323da0c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 #{{URL}}" } - name: Create a GitHub release @@ -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}} diff --git a/Cargo.lock b/Cargo.lock index 5b3d222..6c93112 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -344,7 +344,7 @@ dependencies = [ [[package]] name = "codesnap" -version = "0.4.4" +version = "0.5.0" dependencies = [ "anyhow", "arboard", @@ -366,7 +366,7 @@ dependencies = [ [[package]] name = "codesnap-cli" -version = "0.4.4" +version = "0.5.0" dependencies = [ "ansi_term", "anyhow", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index a36f849..f06fab0 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -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" @@ -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" diff --git a/core/Cargo.toml b/core/Cargo.toml index afb45bb..9550cc5 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -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"