-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
23 lines (20 loc) · 863 Bytes
/
justfile
File metadata and controls
23 lines (20 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
lint:
cargo fmt --all
cargo clippy --workspace --all-targets -- -D warnings
cargo doc --no-deps --workspace --document-private-items
changelog:
git cliff -o CHANGELOG.md
# should make sure the workspace is clean
tag tag:
git cliff --tag {{tag}} -o CHANGELOG.md
# replace the version in Cargo.toml
sed -i "s/^version = .*/version = \"{{tag}}\"/" Cargo.toml
# generate ice.json for scoop menifest
echo -e '{\n"version": "{{tag}}",\n\t"url": "https://github.com/AzurIce/ice/releases/download/{{tag}}/ice-{{tag}}-x86_64-windows.zip",\n\t"extract_dir": "ice-{{tag}}-x86_64-windows",\n\t"bin": "ice.exe"\n}' > ice.json
cargo check
git add CHANGELOG.md Cargo.toml Cargo.lock ice.json
git commit -m "chore(release): prepare for {{tag}}"
git tag -a {{tag}} -m "release v{{tag}}"
push:
git push
git push --tags