1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00
goreleaser/www/docs/customization/templatefiles.md

39 lines
744 B
Markdown
Raw Normal View History

# Template Files
<!-- md:pro -->
Template Files allow you to create custom files and/or scripts using
GoReleaser's internal state and template variables, for example, an installer
script.
All the templated files are uploaded to the release by default.
```yaml
# .goreleaser.yaml
template_files:
2024-03-03 10:53:17 -03:00
- # ID of this particular file.
#
# Default: 'default'.
2024-03-03 10:53:17 -03:00
id: default
# Source path of the template file.
# Ignored if empty.
#
# Templates: allowed.
2024-03-03 10:53:17 -03:00
src: foo.tpl.sh
# Destination path of the file.
# Will be prefixed with the `dist` directory.
2024-03-03 10:53:17 -03:00
# Ignored if empty.
#
# Templates: allowed.
2024-03-03 10:53:17 -03:00
dst: foo.sh
# File mode.
#
# Default: 0655.
mode: 0755
```
<!-- md:templates -->