haunt/.woodpecker.yml

26 lines
644 B
YAML
Raw Permalink Normal View History

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-04 23:29:05 +00:00
publish-github:
image: goreleaser/goreleaser
commands:
2023-03-04 23:31:02 +00:00
- goreleaser release --config .githubrelease.yaml --clean
2023-03-04 23:29:29 +00:00
secrets: [ github_token ]
2023-03-04 23:29:05 +00:00
when:
event: tag
2023-03-04 23:14:49 +00:00