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: ''
|
template: ''
|
||||||
templatePath: ''
|
templatePath: ''
|
||||||
release: 'github'
|
release: 'github'
|
||||||
|
assets:
|
||||||
|
- name:
|
||||||
|
compress:
|
||||||
github:
|
github:
|
||||||
url: ''
|
url: ''
|
||||||
gitlab:
|
gitlab:
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ type GitlabConfig struct {
|
|||||||
URL string `yaml:"url"`
|
URL string `yaml:"url"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Asset struct {
|
||||||
|
Name string `yaml:"name"`
|
||||||
|
Compress bool `yaml:"compress"`
|
||||||
|
}
|
||||||
|
|
||||||
// ReleaseConfig struct
|
// ReleaseConfig struct
|
||||||
type ReleaseConfig struct {
|
type ReleaseConfig struct {
|
||||||
CommitFormat string `yaml:"commitFormat"`
|
CommitFormat string `yaml:"commitFormat"`
|
||||||
@@ -33,6 +38,7 @@ type ReleaseConfig struct {
|
|||||||
Release string `yaml:"release,omitempty"`
|
Release string `yaml:"release,omitempty"`
|
||||||
Github map[string]string `yaml:"github"`
|
Github map[string]string `yaml:"github"`
|
||||||
Gitlab map[string]string `yaml:"gitlab"`
|
Gitlab map[string]string `yaml:"gitlab"`
|
||||||
|
Assets []Asset `yaml:"assets"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read ReleaseConfig
|
// Read ReleaseConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user