Archive binaries into tar.gz and zip for windows #4203
-
Currently I have a build with goos: darwin, linux and windows. All binaries will be archived into tar.gz files (default). I want to archive all windows binaries into tar.gz and zip files. I tried to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
unfortunately there's no obvious way of doing this right now... You could add another archive item with Format overrides don't work because, as the name implies, they override the pre-defined format. What you could do is something like this: builds:
- id: windows-only
goos: [windows]
# etc...
- id: default
goos: [linux, darwin]
# etc...
archives:
- id: windows-only
builds: [windows-only]
format: zip
# etc...
- id: default
builds: [default, windows-only]
format: tar.gz
# etc... This would generate |
Beta Was this translation helpful? Give feedback.
unfortunately there's no obvious way of doing this right now...
You could add another archive item with
zip
as format, but it would apply to all platforms, not only windows.Format overrides don't work because, as the name implies, they override the pre-defined format.
What you could do is something like this:
This would generate
.tar.gz
archive for all three platforms, pluszip
archives for windows.