19 lines
444 B
YAML
19 lines
444 B
YAML
steps:
|
|
build:
|
|
image: golang:1.22
|
|
commands:
|
|
- go mod tidy
|
|
- go build -o gospt
|
|
- mkdir completions
|
|
- ./gospt completion zsh > completions/gospt_zsh
|
|
- ./gospt completion bash > completions/gospt_bash
|
|
- ./gospt completion fish > completions/gospt_fish
|
|
|
|
publish:
|
|
image: goreleaser/goreleaser
|
|
commands:
|
|
- goreleaser release --clean
|
|
secrets: [ gitea_token ]
|
|
when:
|
|
event: tag
|