@@ -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}}
0 commit comments