haunt/.woodpecker.yml

25 lines
466 B
YAML
Raw 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
2023-03-05 07:42:01 +00:00
when:
event: push
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
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