aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2020-07-20 21:43:26 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2020-07-20 22:01:41 +0000
commit91416e513d560e4b2b5f39d6a45a42330ecb2f7e (patch)
tree715b1bf016f3496d6f1e11dbdb6cba411674df18
parentcargo fmt (diff)
downloadminiserve-91416e513d560e4b2b5f39d6a45a42330ecb2f7e.tar.gz
miniserve-91416e513d560e4b2b5f39d6a45a42330ecb2f7e.zip
Use cargo release
-rw-r--r--README.md8
-rw-r--r--release.toml10
2 files changed, 14 insertions, 4 deletions
diff --git a/README.md b/README.md
index 3dee618..dbc3433 100644
--- a/README.md
+++ b/README.md
@@ -103,8 +103,8 @@ You can provide `-i` multiple times to bind to multiple interfaces at the same t
This is mostly a note for me on how to release this thing:
-- Update version in `Cargo.toml` and run `cargo update`.
-- `git commit` and `git tag -s`, `git push`.
-- `cargo publish`
-- Releases will automatically be deployed by Travis.
+- `cargo release --dry-run`
+- `cargo release`
+- Releases will automatically be deployed by Github Actions.
+- Docker images will automatically be built by Docker Hub.
- Update AUR package.
diff --git a/release.toml b/release.toml
new file mode 100644
index 0000000..6c5a193
--- /dev/null
+++ b/release.toml
@@ -0,0 +1,10 @@
+sign-commit = true
+sign-tag = true
+pre-release-replacements = [
+ {file="README.md", search="miniserve [0-9][a-z0-9\\.-]+", replace="miniserve {{version}}"},
+ {file="CHANGELOG.md", search="Unreleased", replace="{{version}}"},
+ {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
+ {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"},
+ {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n\n## [Unreleased] - ReleaseDate"},
+ {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/svenstaro/miniserve/compare/{{tag_name}}...HEAD", exactly=1},
+]