| @@ -19,6 +19,7 @@ description = "Initialize the tooling for this repository." |
| run = ["mise activate", "prek install -t pre-commit -t pre-merge-commit"] |
| |
| [tasks.lint] |
| +wait_for = ["fmt"] |
| description = "Run various linters" |
| run = ["taplo check", "cargo clippy", "prek run --all-files"] |
| |
| @@ -66,14 +67,20 @@ depends = [ |
| "generate-changelog", |
| "build::release", |
| "fmt", |
| - "lint" |
| + "lint", |
| ] |
| +usage = """ |
| +arg "<new_version>" help="New version to release" |
| +""" |
| confirm = "Are you sure you want to release?" |
| description = "release the project" |
| run = [ |
| - "release-plz update", |
| - "git commit -am \"chore: release\"", |
| - "release-plz release" |
| + "prek run --all-files", |
| + "sed -i 's/^version = .*/version = \"${usage_new_version}\"/' Cargo.toml", |
| + "git commit -am \"chore: release v${usage_new_version}\"", |
| + "git tag v${usage_new_version}", |
| + "mise run generate-changelog", |
| + "git tag --force v${usage_new_version}", |
| ] |
| sources = ["Cargo.toml", "Cargo.lock", "*.rs", "**/*.rs"] |
| depends_post = ["clean", "deploy-docs"] |
| @@ -92,6 +99,6 @@ outputs = ["public/"] |
| description = "deploys documentation to https://vit.am/~ololduck/abbaye" |
| depends = ["abbaye", "clean"] |
| run = [ |
| - "rsync --progress -avz --links --perms --update public/ ololduck@vit.am:public_html/abbaye/" |
| + "rsync --progress -avz --links --perms --update public/ ololduck@vit.am:public_html/abbaye/", |
| ] |
| sources = ["public/"] |