-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
64 lines (59 loc) · 1.91 KB
/
Taskfile.yml
File metadata and controls
64 lines (59 loc) · 1.91 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# https://taskfile.dev
version: "3"
vars:
CLIFF_IMG: orhunp/git-cliff:latest
GR_IMG: goreleaser/goreleaser:latest
CLIFF_RUN: >-
docker run --rm
-v {{.ROOT_DIR}}:/app -w /app
{{.CLIFF_IMG}}
GR_RUN: >-
docker run --rm --privileged
-v {{.ROOT_DIR}}:/go/src/github.com/jlrickert/tapper
-w /go/src/github.com/jlrickert/tapper
{{.GR_IMG}}
tasks:
run: go run "./cmd/keg" {{.CLI_ARGS}}
test:
cmds:
- go test ./pkg/... {{.CLI_ARGS}}
sources:
- ./pkg/**/*.go
silent: true
install-keg:
desc: Install the keg CLI (go install ./cmd/keg) and generate Zsh completions (~/.cache/dotfiles/zsh/completions/_keg).
cmds:
- go install ./cmd/kegv2
- kegv2 completion zsh > '{{env "HOME"}}/.cache/dotfiles/zsh/completions/_kegv2'
sources:
- cmd/**
- pkg/**
install-tap:
desc: Install the tap CLI (go install ./cmd/tap) and generate Zsh completions (~/.cache/dotfiles/zsh/completions/_tap).
cmds:
- go install ./cmd/tap
- tap completion zsh > '{{env "HOME"}}/.cache/dotfiles/zsh/completions/_tap'
sources:
- cmd/**/*.go
- pkg/**/*.go
install-tapper:
desc: Install the tapper CLI (go install ./cmd/tap) and generate Zsh completions (~/.cache/dotfiles/zsh/completions/_tap).
cmds:
- go install ./cmd/tap
- tap completion zsh > '{{env "HOME"}}/.cache/dotfiles/zsh/completions/_tap'
changelog:
desc: Regenerate CHANGELOG.md via git-cliff (Docker).
cmds:
- "{{.CLIFF_RUN}} -o CHANGELOG.md"
generates:
- CHANGELOG.md
release-dry-run:
desc: Snapshot build to validate goreleaser config (Docker, no publish).
cmds:
- "{{.GR_RUN}} release --snapshot --clean"
release:
desc: |
Bump version, update changelog, commit, tag, push.
GitHub Actions then runs goreleaser automatically.
cmds:
- open https://github.com/jlrickert/tapper/actions/workflows/release.yml