1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

docs: note about archive without license and readme

closes #602
This commit is contained in:
Carlos Alexandro Becker 2018-03-11 21:07:03 -03:00
parent 27b153458b
commit 7648760108
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -85,3 +85,24 @@ Then you can run:
```console
GOVERSION_NR=$(go version | awk '{print $3;}') goreleaser
```
## Packaging only the binaries
Since GoReleaser will always add the `README` and `LICENSE` files to the
archive if the file list is empty, you'll need to provide a filled `files`
on the archive section.
A working hack is to use something like this:
```yaml
# goreleaser.yml
archive:
files:
- none*
```
This would add all files matching the glob `none*`, provide that you don't
have any files matching that glob, only the binary will be added to the
archive.
For more information, check [#602](https://github.com/goreleaser/goreleaser/issues/602)