summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadrieril2020-04-05 18:17:15 +0100
committerNadrieril2020-04-05 19:25:51 +0100
commit4108bc32e6d7919523c2102421967f23d43f87b2 (patch)
tree68f4e3f46c4b4931dd505023194bc1d302e0b215
parent1f1ba51249df6f3ce739d4727e054d0893fd3288 (diff)
Setup cargo-release
-rw-r--r--README.md5
-rw-r--r--abnf_to_pest/Cargo.toml3
-rw-r--r--dhall/Cargo.toml3
-rw-r--r--dhall_proc_macros/Cargo.toml3
-rw-r--r--release.toml10
-rw-r--r--serde_dhall/Cargo.toml3
-rw-r--r--serde_dhall/release.toml29
7 files changed, 51 insertions, 5 deletions
diff --git a/README.md b/README.md
index 11acb5a..4047a80 100644
--- a/README.md
+++ b/README.md
@@ -167,7 +167,7 @@ same name as the corresponding test.
## Changelog
-#### [???]
+#### [Unreleased]
- Add `serde_dhall::from_file` to read a Dhall file directly.
- BREAKING CHANGE: reworked most of the `serde_dhall` API
@@ -207,6 +207,9 @@ same name as the corresponding test.
- Initial release
+<!-- next-url -->
+[Unreleased]: https://github.com/Nadrieril/dhall-rust/compare/serde_dhall-v0.4.0...HEAD
+
## License
Licensed under the terms of the 2-Clause BSD License ([LICENSE](LICENSE) or
diff --git a/abnf_to_pest/Cargo.toml b/abnf_to_pest/Cargo.toml
index 1567512..a6ecff3 100644
--- a/abnf_to_pest/Cargo.toml
+++ b/abnf_to_pest/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "abnf_to_pest"
-version = "0.2.0" # remember to update html_root_url
+# remember to update html_root_url
+version = "0.2.0"
authors = ["Nadrieril <nadrieril@users.noreply.github.com>"]
license = "MIT OR Apache-2.0"
edition = "2018"
diff --git a/dhall/Cargo.toml b/dhall/Cargo.toml
index bb60d9e..aa01a05 100644
--- a/dhall/Cargo.toml
+++ b/dhall/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dhall"
-version = "0.4.0" # remember to update html_root_url
+# remember to update html_root_url
+version = "0.4.0"
authors = ["NanoTech <nanotech@nanotechcorp.net>", "Nadrieril <nadrieril@users.noreply.github.com>"]
license = "BSD-2-Clause"
description = "Implementation of the Dhall configuration language"
diff --git a/dhall_proc_macros/Cargo.toml b/dhall_proc_macros/Cargo.toml
index 48b55e8..8f6f1f2 100644
--- a/dhall_proc_macros/Cargo.toml
+++ b/dhall_proc_macros/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "dhall_proc_macros"
-version = "0.4.0" # remember to update html_root_url
+# remember to update html_root_url
+version = "0.4.0"
authors = ["Nadrieril <nadrieril@users.noreply.github.com>"]
license = "BSD-2-Clause"
description = "Macros for dhall"
diff --git a/release.toml b/release.toml
new file mode 100644
index 0000000..eef7d2a
--- /dev/null
+++ b/release.toml
@@ -0,0 +1,10 @@
+disable-push = true
+disable-publish = true
+no-dev-version = true
+pre-release-commit-message = "Release {{crate_name}} version {{version}}"
+
+[[pre-release-replacements]]
+file = "src/lib.rs"
+search = "\\[doc\\(html_root_url = .*\\)\\]"
+replace = "[doc(html_root_url = \"https://docs.rs/{{crate_name}}/{{version}}\")]"
+exactly = 1
diff --git a/serde_dhall/Cargo.toml b/serde_dhall/Cargo.toml
index 6af883a..ef76032 100644
--- a/serde_dhall/Cargo.toml
+++ b/serde_dhall/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "serde_dhall"
-version = "0.4.0" # remember to update html_root_url, README and changelog
+# remember to update html_root_url, README and changelog
+version = "0.4.0"
authors = ["Nadrieril <nadrieril@users.noreply.github.com>"]
license = "BSD-2-Clause"
description = "Dhall support for serde"
diff --git a/serde_dhall/release.toml b/serde_dhall/release.toml
new file mode 100644
index 0000000..7921551
--- /dev/null
+++ b/serde_dhall/release.toml
@@ -0,0 +1,29 @@
+[[pre-release-replacements]]
+file = "../README.md"
+search = "serde_dhall = \".*\""
+replace = "{{crate_name}} = \"{{version}}\""
+exactly = 1
+
+[[pre-release-replacements]]
+file = "../README.md"
+search = "#### \\[Unreleased\\]"
+replace = "#### \\[Unreleased\\]\n\n#### [{{version}}] - {{date}}"
+exactly = 1
+
+[[pre-release-replacements]]
+file = "../README.md"
+search = "\\[Unreleased\\]:"
+replace = "[{{version}}]:"
+exactly = 1
+
+[[pre-release-replacements]]
+file = "../README.md"
+search = "\\.\\.\\.HEAD"
+replace = "...{{tag_name}}"
+exactly = 1
+
+[[pre-release-replacements]]
+file = "../README.md"
+search = "<!-- next-url -->"
+replace = "<!-- next-url -->\n[Unreleased]: https://github.com/Nadrieril/dhall-rust/compare/{{tag_name}}...HEAD"
+exactly = 1