-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
32 lines (25 loc) · 748 Bytes
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set dotenv-load
_default:
@ just --list
lint:
@ cargo clippy
test:
@ cargo test
build:
@ cargo build
doc:
@ cargo doc --no-deps --open
# Publish the crate on crates.io
release version: lint test
#!/usr/bin/env bash
read -n 1 -s -r -p "you're about to release {{version}} - press any button to continue"
echo 'updating version in Cargo.toml to {{version}}'
sed -i 's/^version = ".*"$/version = "{{version}}"/' Cargo.toml
echo 'committing changes'
git add .
git commit -m 'feat: update crate to version {{version}}'
git tag -a -s -m 'Release of version {{version}}; see CHANGELOG.md' {{version}}
git push
git push --tags
cargo publish
echo 'successfully published crate'