github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/templatefiles.md (about) 1 # Template Files 2 3 > Since v1.16 (pro) 4 5 !!! success "GoReleaser Pro" 6 7 Template Files is a [GoReleaser Pro feature](/pro/). 8 9 Template Files allow you to create custom files and/or scripts using 10 GoReleaser's internal state and template variables, for example, an installer 11 script. 12 13 All the templated files are uploaded to the release by default. 14 15 ```yaml 16 # .goreleaser.yaml 17 template_files: 18 - # ID of this particular file. 19 # 20 # Default: 'default' 21 id: default 22 23 # Source path of the template file. 24 # Ignored if empty. 25 # 26 # Templates: allowed 27 src: foo.tpl.sh 28 29 # Destination path of the file. 30 # Will be prefixed with the `dist` directory. 31 # Ignored if empty. 32 # 33 # Templates: allowed 34 dst: foo.sh 35 36 # File mode. 37 # 38 # Default: 0655. 39 mode: 0755 40 ``` 41 42 !!! tip 43 44 Learn more about the [name template engine](/customization/templates/).