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