| @@ -78,16 +78,18 @@ arg "<new_version>" help="New version to release" |
| confirm = "Are you sure you want to release?" |
| description = "release the project" |
| run = [ |
| - 'sed -i "s/^version = .*/version = \\\"${usage_new_version}\\\"/" Cargo.toml && git add Cargo.toml', |
| + 'sed -i "s/^version = .*/version = \\\"${usage_new_version}\\\"/" Cargo.toml', |
| + 'git commit -am "chore: release v${usage_new_version}"', |
| + "mise run generate-changelog && git commit --amend --no-edit -n", |
| "prek run --all-files", |
| - "git commit -am \"chore: release v${usage_new_version}\"", |
| "mise run 'build::release'", |
| "git tag --force v${usage_new_version}", |
| "mise run generate-changelog && git commit --amend --no-edit -n", |
| + "git push --force", |
| "git tag --force v${usage_new_version}", |
| ] |
| sources = ["Cargo.toml", "Cargo.lock", "*.rs", "**/*.rs"] |
| -depends_post = ["deploy-docs"] |
| +depends_post = ["deploy-docs", "abbaye"] |
| |
| [tasks.clean] |
| description = "cleans the build output" |
| @@ -96,12 +98,12 @@ run = ["cargo clean", "rm -rf public/"] |
| [tasks.abbaye] |
| wait_for = ["release", "clean"] |
| description = "builds the release website" |
| -run = ["cargo run --bin abbaye -- build"] |
| +run = ["cargo run --release --bin abbaye -- build"] |
| outputs = ["public/"] |
| |
| [tasks.deploy-docs] |
| description = "deploys documentation to https://vit.am/~ololduck/abbaye" |
| -depends = ["abbaye", "clean"] |
| +depends = ["abbaye"] |
| run = [ |
| "rsync --progress -avz --links --perms --update public/ ololduck@vit.am:public_html/abbaye/", |
| ] |