feat(config): add list of assets with name and bool if the asset should be compressed

This commit is contained in:
Felix Wiedmann
2019-05-28 22:12:00 +02:00
parent a1df565da1
commit 29a97cbba4
2 changed files with 9 additions and 0 deletions

View File

@@ -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