build: ➕ add install task command that copies the build binary into /usr/local/bin
ci / vet, staticcheck, test, build (push) Successful in 3m27s
ci / vet, staticcheck, test, build (push) Successful in 3m27s
This commit is contained in:
@@ -24,6 +24,12 @@ tasks:
|
||||
generates:
|
||||
- "{{.BIN}}"
|
||||
|
||||
install:
|
||||
desc: installs the binary in /usr/local/bin/
|
||||
cmds:
|
||||
- task: build
|
||||
- sudo cp ./bin/releaser /usr/local/bin/releaser
|
||||
|
||||
run:
|
||||
desc: Build and run releaser (pass args with -- e.g. task run -- --dry-run)
|
||||
deps: [build]
|
||||
|
||||
Reference in New Issue
Block a user