-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
hugoreleaser.yaml
132 lines (127 loc) · 3.47 KB
/
hugoreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
project: hugoreleaser
# definitions can be used to define anchors for common blocks and values.
# But note that build_settings and archive_settings can be set on any level and will merged downwards.
# Any zero config value will be replaced with the first non-zero value found above.
definitions:
# Useful if you have changed archive naming scheme, but want to preserve some backwards compability with the most
# common variants, e.g. "linux-amd64.tar.gz: Linux-64bit.tar.gz"
archive_alias_replacements: {}
go_settings:
go_proxy: https://proxy.golang.org
go_exe: go
# This can be overridden for each build, goos, or goarch if needed.
build_settings:
binary: hugoreleaser
flags:
- -buildmode
- exe
env:
- CGO_ENABLED=0
ldflags: "-s -w -X main.tag=${HUGORELEASER_TAG}"
# This can be overridden for each archive.
archive_settings:
name_template: "{{ .Project }}_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
extra_files:
- source_path: README.md
target_path: README.md
- source_path: LICENSE
target_path: LICENSE
type:
format: tar.gz
extension: .tar.gz
release_settings:
name: ${HUGORELEASER_TAG}
type: github
repository: hugoreleaser
repository_owner: gohugoio
draft: true
prerelease: false
release_notes_settings:
generate: true
generate_on_host: false
filename: ""
template_filename: ""
short_threshold: 10
short_title: What's Changed
groups:
- regexp: snapcraft:|Merge commit|Squashed
ignore: true
- title: Bug fixes
regexp: fix
ordinal: 20
- title: Dependency Updates
regexp: deps
ordinal: 30
- title: Documentation
regexp: doc
ordinal: 40
- title: Improvements
regexp: .*
ordinal: 10
builds:
- path: unix
os:
- goos: linux
archs:
- goarch: amd64
- path: macos
os:
- goos: darwin
archs:
- goarch: universal
- path: windows
os:
- goos: windows
build_settings:
binary: hugoreleaser.exe
archs:
- goarch: amd64
archives:
- paths:
- builds/unix/**
- paths:
- builds/macos/**
archive_settings:
extra_files: []
type:
format: _plugin
extension: .pkg
plugin:
id: macospkgremote
type: gorun
command: github.com/gohugoio/hugoreleaser-archive-plugins/macospkgremote@latest
custom_settings:
package_identifier: io.gohugo.hugoreleaser
package_version: ${HUGORELEASER_TAG}
bucket: s3fptest
queue: https://sqs.eu-north-1.amazonaws.com/656975317043/s3fptest_client
access_key_id: ${S3RPC_CLIENT_ACCESS_KEY_ID}
secret_access_key: ${S3RPC_CLIENT_SECRET_ACCESS_KEY}
- paths:
- builds/**/linux/amd64
archive_settings:
binary_dir: /usr/local/bin
extra_files: []
type:
format: _plugin
extension: .deb
plugin:
id: deb
type: gorun
command: github.com/gohugoio/hugoreleaser-archive-plugins/deb@latest
custom_settings:
vendor: gohugo.io
homepage: https://github.com/gohugoio/hugoreleaser
maintainer: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
description: Build, archive and release Go programs.
license: Apache-2.0
- paths:
- builds/windows/**
archive_settings:
type:
format: zip
extension: .zip
releases:
- paths:
- archives/**
path: myrelease