kind: pipeline type: docker name: default steps: - name: build_source image: golang:1.13 commands: - GOOS=linux GOARCH=amd64 go build -o linux-amd64 . - GOOS=linux GOARCH=386 go build -o linux-386 . - GOOS=darwin GOARCH=amd64 go build -o darwin-amd64 . - GOOS=windows GOARCH=386 go build -o windows-386.exe . - GOOS=windows GOARCH=amd64 go build -o windows-amd64.exe . - name: gitea_release image: plugins/gitea-release settings: api_key: from_secret: gitea_token base_url: https://git.trj.tw files: - linux-amd64 - linux-386 - darwin-amd64 - windows-386.exe - windows-amd64.exe checksum: - sha256 when: event: tag trigger: branch: - master event: - tag