| 1 | before: |
| 2 | hooks: |
| 3 | - go mod download |
| 4 | - go generate ./... |
| 5 | |
| 6 | builds: |
| 7 | - id: "rsync-linux" |
| 8 | main: "./cmd/gokr-rsync" |
| 9 | binary: "gokr-rsync" |
| 10 | env: |
| 11 | - CGO_ENABLED=0 |
| 12 | goos: |
| 13 | - linux |
| 14 | goarch: |
| 15 | - amd64 |
| 16 | - arm |
| 17 | - arm64 |
| 18 | - 386 |
| 19 | |
| 20 | - id: "rsync-windows" |
| 21 | main: "./cmd/gokr-rsync" |
| 22 | binary: "gokr-rsync" |
| 23 | env: |
| 24 | - CGO_ENABLED=0 |
| 25 | goos: |
| 26 | - windows |
| 27 | goarch: |
| 28 | - arm64 |
| 29 | - amd64 |
| 30 | - 386 |
| 31 | |
| 32 | - id: "rsync-macos" |
| 33 | main: "./cmd/gokr-rsync" |
| 34 | binary: "gokr-rsync" |
| 35 | env: |
| 36 | - CGO_ENABLED=0 |
| 37 | goos: |
| 38 | - darwin |
| 39 | goarch: |
| 40 | - arm64 |
| 41 | - amd64 |
| 42 | |
| 43 | archives: |
| 44 | - id: linux |
| 45 | name_template: >- |
| 46 | rsync_ |
| 47 | {{- title .Os }}_ |
| 48 | {{- if eq .Arch "amd64" }}x86_64 |
| 49 | {{- else if eq .Arch "386" }}i386 |
| 50 | {{- else}}{{ .Arch }}{{ end }} |
| 51 | builds: ["rsync-linux"] |
| 52 | |
| 53 | - id: windows |
| 54 | name_template: >- |
| 55 | rsync_ |
| 56 | {{- title .Os }}_ |
| 57 | {{- if eq .Arch "amd64" }}x86_64 |
| 58 | {{- else if eq .Arch "386" }}i386 |
| 59 | {{- else}}{{ .Arch }}{{ end }} |
| 60 | builds: ["rsync-windows"] |
| 61 | format: zip |
| 62 | |
| 63 | - id: macos |
| 64 | name_template: >- |
| 65 | rsync_Mac_ |
| 66 | {{- if eq .Arch "amd64" }}Intel |
| 67 | {{- else if eq .Arch "arm64" }}Apple_Silicon |
| 68 | {{- else}}{{ .Arch }}{{ end }} |
| 69 | builds: ["rsync-macos"] |
| 70 | format: zip |
| 71 | |
| 72 | signs: |
| 73 | - id: mac-notarize |
| 74 | ids: [macos] |
| 75 | signature: "${artifact}.dmg" |
| 76 | output: true |
| 77 | cmd: bash |
| 78 | args: |
| 79 | - "-c" |
| 80 | - "gon gon_$(echo ${artifact} | sed 's,^dist/rsync_,,g;s,\\.zip$,,g').hcl" |
| 81 | artifacts: archive |
| 82 | |
| 83 | checksum: |
| 84 | name_template: 'checksums.txt' |
| 85 | |
| 86 | snapshot: |
| 87 | name_template: "{{ .Tag }}-next" |
| 88 | |
| 89 | changelog: |
| 90 | sort: asc |
| 91 | filters: |
| 92 | exclude: |
| 93 | - '^docs:' |
| 94 | - '^test:' |
| 95 | |
| 96 | release: |
| 97 | github: |
| 98 | owner: gokrazy |
| 99 | name: rsync |