|
| 1 | +project: "s3deploy" |
| 2 | + |
| 3 | +# Create archive aliases (copies) for base archive filenames |
| 4 | +# which contains the string on the left, e.g. |
| 5 | +# { "linux-64bit": "linux-amd64" }. |
| 6 | +# |
| 7 | +# The common use case is to to preserve some backward compatibility on name changes, |
| 8 | +# the example above is taken from Hugo. |
| 9 | +# You can include any extension in the above to limit this to e.g. only .deb archives. |
| 10 | +archive_alias_replacements: {} |
| 11 | + |
| 12 | +# Go settings can be set on any of Project > Build. |
| 13 | +# See Build settings for merge rules. |
| 14 | +go_settings: |
| 15 | + # go_proxy will be used to set GOPROXY when running Go. |
| 16 | + # It will default to 'https://proxy.golang.org' if not set. |
| 17 | + # |
| 18 | + # See https://proxy.golang.org/ for more information. |
| 19 | + go_proxy: "https://proxy.golang.org" |
| 20 | + go_exe: "go" |
| 21 | + |
| 22 | +# Build settings can be set on any of Project > Build > Goos > Goarch. |
| 23 | +# Zero values (empty strings, 0 numbers) and nil slices/maps will inherit values from the nearest non-zero value above for a key. |
| 24 | +# Empty slices and maps will stay empty (e.g. `env = []`) |
| 25 | +build_settings: |
| 26 | + binary: "s3deploy" |
| 27 | + flags: |
| 28 | + - "-buildmode" |
| 29 | + - "exe" |
| 30 | + env: |
| 31 | + - "CGO_ENABLED=0" |
| 32 | + ldflags: "-s -w -X main.tag=${HUGORELEASER_TAG}" |
| 33 | + |
| 34 | +# Archive settings can be set on any of Project > Archive. |
| 35 | +# Follows the same merge rules as Build settings. |
| 36 | +archive_settings: |
| 37 | + name_template: "{{ .Project }}_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" |
| 38 | + # Extra, as in: In addition to the binary. |
| 39 | + extra_files: |
| 40 | + - source_path: "README.md" |
| 41 | + target_path: "README.md" |
| 42 | + - source_path: "LICENSE" |
| 43 | + target_path: "LICENSE" |
| 44 | + type: |
| 45 | + format: "tar.gz" |
| 46 | + extension: ".tar.gz" |
| 47 | + |
| 48 | +release_settings: |
| 49 | + name: "${HUGORELEASER_TAG}" |
| 50 | + type: "github" |
| 51 | + repository: "s3deploy" |
| 52 | + repository_owner: "bep" |
| 53 | + |
| 54 | + draft: true |
| 55 | + prerelease: false |
| 56 | + |
| 57 | + release_notes_settings: |
| 58 | + # Use Hugoreleaser's autogenerated release notes. |
| 59 | + generate: true |
| 60 | + # Enable this to use GitHub's autogenerated release notes. |
| 61 | + generate_on_host: false |
| 62 | + |
| 63 | + # Set this if you have release notes file ready to use. |
| 64 | + filename: "" |
| 65 | + |
| 66 | + # A custom template filename for Hugoreleaser's autogenerated release notes. |
| 67 | + # Will fall back to the default if not set. |
| 68 | + template_filename: "" |
| 69 | + |
| 70 | + # Collapse releases with < 10 changes below one title. |
| 71 | + short_threshold: 10 |
| 72 | + short_title: "What's Changed" |
| 73 | + |
| 74 | + groups: |
| 75 | + # Group the changes in the release notes by title. |
| 76 | + # You need at least one. |
| 77 | + # The groups will be tested in order until a match is found. |
| 78 | + # The titles will, by default, be listed in the given order in the release note. |
| 79 | + # You can set an optional ordinal to adjust the order (as in the setup below). |
| 80 | + # Any match with ignore=true will be dropped. |
| 81 | + - regexp: "snapcraft:|Merge commit|Squashed" |
| 82 | + ignore: true |
| 83 | + - title: "Bug fixes" |
| 84 | + regexp: "fix" |
| 85 | + ordinal: 20 |
| 86 | + - title: "Dependency Updates" |
| 87 | + regexp: "deps" |
| 88 | + ordinal: 30 |
| 89 | + - title: "Documentation" |
| 90 | + regexp: "doc" |
| 91 | + ordinal: 40 |
| 92 | + - title: "Improvements" |
| 93 | + regexp: ".*" |
| 94 | + ordinal: 10 |
| 95 | + |
| 96 | +builds: |
| 97 | + # User-defined path. Can be used to partition the build/archive step, e.g.: |
| 98 | + # |
| 99 | + # hugoreleaser build -paths "builds/unix/**" |
| 100 | + # |
| 101 | + # The above would only build binaries matching the given path ("Unix binaries"). |
| 102 | + - path: "unix" |
| 103 | + os: |
| 104 | + - goos: "linux" |
| 105 | + archs: |
| 106 | + - goarch: "amd64" |
| 107 | + |
| 108 | + - path: "macos" |
| 109 | + os: |
| 110 | + - goos: "darwin" |
| 111 | + archs: |
| 112 | + - goarch: "universal" |
| 113 | + |
| 114 | + - path: "windows" |
| 115 | + os: |
| 116 | + - goos: "windows" |
| 117 | + build_settings: |
| 118 | + binary: "s3deploy.exe" |
| 119 | + archs: |
| 120 | + - goarch: "amd64" |
| 121 | + |
| 122 | +archives: |
| 123 | + - paths: |
| 124 | + - "builds/{unix,macos}/**" |
| 125 | + |
| 126 | + - paths: |
| 127 | + - "builds/macos/**" |
| 128 | + archive_settings: |
| 129 | + extra_files: [] |
| 130 | + type: |
| 131 | + # When format is _plugin, |
| 132 | + # archive_settings.plugin must also be configured. |
| 133 | + format: "_plugin" |
| 134 | + extension: ".pkg" |
| 135 | + plugin: |
| 136 | + id: "macospkgremote" |
| 137 | + type: "gorun" |
| 138 | + # Note there is a "local" variant of this that may be simpler to set up, see |
| 139 | + # https://github.com/gohugoio/hugoreleaser-archive-plugins/tree/main/macospkg |
| 140 | + command: "github.com/gohugoio/hugoreleaser-archive-plugins/macospkgremote@v5cf673e24cb39d8bbe63930fe6c499211b43c633" |
| 141 | + custom_settings: |
| 142 | + # Package settings |
| 143 | + package_identifier: "com.bepsays.s3deploy" |
| 144 | + package_version: "${HUGORELEASER_TAG}" |
| 145 | + |
| 146 | + # AWS Settings |
| 147 | + bucket: "s3fptest" |
| 148 | + queue: "https://sqs.eu-north-1.amazonaws.com/656975317043/s3fptest_client" |
| 149 | + access_key_id: "${S3RPC_CLIENT_ACCESS_KEY_ID}" |
| 150 | + secret_access_key: "${S3RPC_CLIENT_SECRET_ACCESS_KEY}" |
| 151 | + |
| 152 | + - paths: |
| 153 | + - "builds/**/linux/amd64" |
| 154 | + archive_settings: |
| 155 | + binary_dir: "/usr/local/bin" |
| 156 | + extra_files: [] |
| 157 | + type: |
| 158 | + # When format is _plugin, |
| 159 | + # archive_settings.plugin must also be configured. |
| 160 | + format: "_plugin" |
| 161 | + extension: ".deb" |
| 162 | + plugin: |
| 163 | + id: "deb" |
| 164 | + # gorun is currently the only type. |
| 165 | + type: "gorun" |
| 166 | + # If the plugin source lives locally, this can also be a file path, |
| 167 | + # e.g. './myplugin'. In those setups you may need to set dir to the directory path, |
| 168 | + # and use "." for the command. |
| 169 | + command: "github.com/gohugoio/hugoreleaser-archive-plugins/[email protected]" |
| 170 | + custom_settings: |
| 171 | + # Custom settings as defined by the Deb plugin. |
| 172 | + vendor: "gohugo.io" |
| 173 | + homepage: "https://github.com/gohugoio/hugoreleaser" |
| 174 | + maintainer: "Bjørn Erik Pedersen <[email protected]>" |
| 175 | + description: "Build, archive and release Go programs." |
| 176 | + license: "Apache-2.0" |
| 177 | + |
| 178 | + - paths: |
| 179 | + - "builds/windows/**" |
| 180 | + archive_settings: |
| 181 | + type: |
| 182 | + format: "zip" |
| 183 | + extension: ".zip" |
| 184 | + |
| 185 | +releases: |
| 186 | + - paths: |
| 187 | + - "archives/**" |
| 188 | + # In this file we have only one release, but path can be used to partition the release step, e.g.: |
| 189 | + # hugoreleaser release -paths "releases/myrelease" |
| 190 | + path: "myrelease" |
| 191 | + |
| 192 | +publishers: |
| 193 | + - paths: |
| 194 | + - releases/** |
| 195 | + type: |
| 196 | + format: github_release |
| 197 | + - paths: |
| 198 | + - releases/**/archives/macos/** |
| 199 | + type: |
| 200 | + format: homebrew_cask |
| 201 | + custom_settings: |
| 202 | + bundle_identifier: com.bepsays.s3deploy |
| 203 | + homepage: "https://github.com/bep/s3deploy" |
| 204 | + description: "A simple tool to deploy static websites to Amazon S3 and CloudFront with Gzip and custom headers support." |
0 commit comments