2023-03-04 14:22:03 -08:00
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go mod tidy
|
2023-03-04 15:14:49 -08:00
|
|
|
- go build -o bin/haunt
|
2023-03-04 23:42:01 -08:00
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
2023-03-04 15:14:49 -08:00
|
|
|
publish:
|
|
|
|
image: goreleaser/goreleaser
|
|
|
|
commands:
|
2023-03-04 15:31:02 -08:00
|
|
|
- goreleaser release --clean
|
2023-03-04 15:14:49 -08:00
|
|
|
secrets: [ gitea_token ]
|
|
|
|
when:
|
|
|
|
event: tag
|
2023-03-04 16:45:52 -08:00
|
|
|
publish-github:
|
|
|
|
image: goreleaser/goreleaser
|
|
|
|
commands:
|
|
|
|
- goreleaser release --config .githubrelease.yaml --clean
|
|
|
|
secrets: [ github_token ]
|
|
|
|
when:
|
|
|
|
event: tag
|
2023-03-04 15:14:49 -08:00
|
|
|
|