Skip to content

Commit

Permalink
refactor(ci): split release target
Browse files Browse the repository at this point in the history
  • Loading branch information
brumhard committed May 8, 2023
1 parent 61e8388 commit bc76382
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions maskfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ for target in $targets; do
done
```

## release
## tag

> creates a new release
> creates a new tag
**OPTIONS**

Expand All @@ -104,9 +104,26 @@ if ! echo "$next_tag" | rg -q 'v([0-9]|[1-9][0-9]*)\.([0-9]|[1-9][0-9]*)\.([0-9]
echo "not a valid version"
exit 1
fi
mask cross
git tag "$next_tag"
git push
git push --tags
```

## release

> creates a new release
**OPTIONS**

* local
* flags: --local
* type: bool
* desc: if enabled mask tag will be run prior to release

```sh
if [ $local ]; then
mask tag
fi
mask cross
goreleaser release --clean
```

0 comments on commit bc76382

Please sign in to comment.