Skip to content

Commit

Permalink
Add release target
Browse files Browse the repository at this point in the history
  • Loading branch information
brumhard committed May 5, 2023
1 parent 82d7afa commit 148f165
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion maskfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@ docker build -f test.Dockerfile -t "$image_name" .
cargo run -- --image "$image_name" dump -o "$out_dir" --verbose
```

## lint

> runs cargo clippy
```sh
cargo clippy -- -W clippy::pedantic
```

## audit

> audit the dependencies
> runs audit for dependencies
```sh
info=$(cargo outdated --root-deps-only --format json)
Expand Down Expand Up @@ -57,3 +65,29 @@ for target in $targets; do
cp "$out_dir/$target/$target/release/rl" "$out_dir/bin/rl-$arch_os"
done
```

## release

> creates a new release
**OPTIONS**

* next_tag
* flags: --tag -t
* desc: tag for the next release version
* type: string

```sh
if [ "$(git status --porcelain)" != "" ]; then
echo "nope too dirty"
exit 1
fi
if [ "$next_tag" = "" ]; then
current_tag=$(git tag |tail -1)
read -r -p "Enter next tag (current: '$current_tag'): " next_tag
fi
mask cross
git tag "$next_tag"
git push --tags
goreleaser release --clean
```

0 comments on commit 148f165

Please sign in to comment.