You've already forked go-semantic-release
feat(config): add list of assets with name and bool if the asset should be compressed
This commit is contained in:
@@ -9,6 +9,9 @@ changelog:
|
||||
template: ''
|
||||
templatePath: ''
|
||||
release: 'github'
|
||||
assets:
|
||||
- name:
|
||||
compress:
|
||||
github:
|
||||
url: ''
|
||||
gitlab:
|
||||
|
||||
@@ -25,6 +25,11 @@ type GitlabConfig struct {
|
||||
URL string `yaml:"url"`
|
||||
}
|
||||
|
||||
type Asset struct {
|
||||
Name string `yaml:"name"`
|
||||
Compress bool `yaml:"compress"`
|
||||
}
|
||||
|
||||
// ReleaseConfig struct
|
||||
type ReleaseConfig struct {
|
||||
CommitFormat string `yaml:"commitFormat"`
|
||||
@@ -33,6 +38,7 @@ type ReleaseConfig struct {
|
||||
Release string `yaml:"release,omitempty"`
|
||||
Github map[string]string `yaml:"github"`
|
||||
Gitlab map[string]string `yaml:"gitlab"`
|
||||
Assets []Asset `yaml:"assets"`
|
||||
}
|
||||
|
||||
// Read ReleaseConfig
|
||||
|
||||
Reference in New Issue
Block a user