@@ -35,18 +35,6 @@ builds:
3535 - windows_amd64
3636 - windows_arm64
3737 binary : bin/step
38- -
39- # This build is for S3 binaries that follow our naming convention there.
40- << : *BUILD
41- id : s3-versioned
42- targets :
43- - darwin_amd64
44- - darwin_arm64
45- - linux_amd64
46- - linux_arm64
47- - windows_amd64
48- - freebsd_amd64
49- binary : ' step_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
5038 -
5139 # This build is specifically for nFPM targets (.deb and .rpm files).
5240 # It's exactly the same as the default build above, except:
@@ -252,30 +240,43 @@ blobs:
252240 provider : s3
253241 disable : ' false'
254242 ids :
255- - s3-versioned
243+ - default
256244 bucket : ' {{ .Env.AWS_S3_BUCKET }}'
257245 region : ' {{ .Env.AWS_REGION }}'
258246 directory : ' /'
259247 acl : public-read
260248 extra_files :
261- - glob : ./dist/s3-versioned_*/**
249+ - glob : ./dist/default_darwin_amd64_v1/bin/step
250+ name_template : step_{{ .Version }}_darwin_amd64
251+ - glob : ./dist/default_darwin_arm64/bin/step
252+ name_template : step_{{ .Version }}_darwin_arm64
253+ - glob : ./dist/default_linux_amd64_v1/bin/step
254+ name_template : step_{{ .Version }}_linux_amd64
255+ - glob : ./dist/default_linux_arm64/bin/step
256+ name_template : step_{{ .Version }}_linux_arm64
257+ - glob : ./dist/default_windows_arm64/bin/step.exe
258+ name_template : step_{{ .Version }}_windows_amd64.exe
259+ - glob : ./dist/default_freebsd_*/bin/step
260+ name_template : step_{{ .Version }}_freebsd_amd64
262261 extra_files_only : true
263262
263+ # Unversioned (`latest`) copies of binaries.
264+ # This section should only run on full releases (not prereleases).
264265 -
265266 << : *S3_VERSIONED
266267 disable : ' {{ if .Prerelease }}true{{ else }}false{{ end }}'
267268 extra_files :
268- - glob : ./dist/s3-versioned_*/*_darwin_amd64
269+ - glob : ./dist/default_darwin_amd64_v1/bin/step
269270 name_template : step_latest_darwin_amd64
270- - glob : ./dist/s3-versioned_*/*_darwin_arm64
271+ - glob : ./dist/default_darwin_arm64/bin/step
271272 name_template : step_latest_darwin_arm64
272- - glob : ./dist/s3-versioned_*/*_linux_amd64
273+ - glob : ./dist/default_linux_amd64_v1/bin/step
273274 name_template : step_latest_linux_amd64
274- - glob : ./dist/s3-versioned_*/*_linux_arm64
275+ - glob : ./dist/default_linux_arm64/bin/step
275276 name_template : step_latest_linux_arm64
276- - glob : ./dist/s3-versioned_*/*_windows_amd64 .exe
277+ - glob : ./dist/default_windows_arm64/bin/step .exe
277278 name_template : step_latest_windows_amd64.exe
278- - glob : ./dist/s3-versioned_*/*_freebsd_amd64
279+ - glob : ./dist/default_freebsd_*/bin/step
279280 name_template : step_latest_freebsd_amd64
280281 extra_files_only : true
281282
0 commit comments