Skip to content

Commit

Permalink
Merge pull request #240 from korpling/feature/update-licenses-on-release
Browse files Browse the repository at this point in the history
Generate third party license file as pre-release hook
  • Loading branch information
thomaskrause authored Jun 17, 2024
2 parents 2976717 + d04e582 commit 5753882
Show file tree
Hide file tree
Showing 4 changed files with 795 additions and 235 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ installed to perform a release. Execute the follwing `cargo` command once to
install it.

```bash
cargo install cargo-release
cargo install cargo-release cargo-about
```

To perform a release, switch to the main branch and execute:
Expand Down
2 changes: 1 addition & 1 deletion about.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<p>This page lists the licenses of the projects used in annatto.</p>
<p>To re-generate this list, install the <a href="https://crates.io/crates/cargo-about">cargo-about</a>
Cargo plugin and run
<pre>cargo about generate about.hbs > third-party-licenses.html</pre>
<pre>cargo about generate about.hbs -o third-party-licenses.html</pre>
</p>
</div>

Expand Down
8 changes: 8 additions & 0 deletions release.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
pre-release-hook = [
"cargo",
"about",
"generate",
"about.hbs",
"-o",
"third-party-licenses.html",
]
pre-release-replacements = [
{file = "CHANGELOG.md", search = "## \\[Unreleased\\]", replace = "## [Unreleased]\n\n## [{{version}}] - {{date}}"},
{file = "CITATION.cff", search = "^version: [0-9.]+", replace = "version: {{version}}"},
Expand Down
Loading

0 comments on commit 5753882

Please sign in to comment.