2023-03-04 22:22:03 +00:00
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go mod tidy
|
2023-03-04 23:14:49 +00:00
|
|
|
- go build -o bin/haunt
|
|
|
|
- mkdir completions
|
|
|
|
- ./bin/haunt completion zsh > completions/haunt_zsh
|
2023-03-04 23:17:22 +00:00
|
|
|
- ./bin/haunt completion bash > completions/haunt_bash
|
2023-03-04 23:17:51 +00:00
|
|
|
- ./bin/haunt completion fish > completions/haunt_fish
|
2023-03-04 23:14:49 +00:00
|
|
|
publish:
|
|
|
|
image: goreleaser/goreleaser
|
|
|
|
commands:
|
2023-03-04 23:31:02 +00:00
|
|
|
- goreleaser release --clean
|
2023-03-04 23:14:49 +00:00
|
|
|
secrets: [ gitea_token ]
|
|
|
|
when:
|
|
|
|
event: tag
|
2023-03-05 00:45:52 +00:00
|
|
|
publish-github:
|
|
|
|
image: goreleaser/goreleaser
|
|
|
|
commands:
|
|
|
|
- goreleaser release --config .githubrelease.yaml --clean
|
|
|
|
secrets: [ github_token ]
|
|
|
|
when:
|
|
|
|
event: tag
|
2023-03-04 23:14:49 +00:00
|
|
|
|