2023-10-20 10:55:20 -07:00
|
|
|
steps:
|
2023-01-19 22:09:47 -08:00
|
|
|
build:
|
2024-07-06 13:18:09 -07:00
|
|
|
image: golang:1.22
|
2023-01-19 22:09:47 -08:00
|
|
|
commands:
|
2023-02-28 10:53:58 -08:00
|
|
|
- go mod tidy
|
2023-01-19 22:09:47 -08:00
|
|
|
- go build -o gospt
|
2023-02-28 09:03:34 -08:00
|
|
|
- mkdir completions
|
2023-02-28 09:02:16 -08:00
|
|
|
- ./gospt completion zsh > completions/gospt_zsh
|
|
|
|
- ./gospt completion bash > completions/gospt_bash
|
|
|
|
- ./gospt completion fish > completions/gospt_fish
|
2023-01-21 08:12:15 -08:00
|
|
|
|
|
|
|
publish:
|
2023-03-05 15:15:56 -08:00
|
|
|
image: goreleaser/goreleaser
|
2023-02-28 08:11:32 -08:00
|
|
|
commands:
|
2023-03-04 16:20:48 -08:00
|
|
|
- goreleaser release --clean
|
2023-02-28 08:18:08 -08:00
|
|
|
secrets: [ gitea_token ]
|
2023-01-21 10:42:17 -08:00
|
|
|
when:
|
|
|
|
event: tag
|