file:copy
Copies a file from source to destination, preserving file permissions
Options
| Name | Type | Description |
|---|---|---|
source | string | Path to the source file |
dest | string | Path to the destination file |
Outputs
| Name | Type | Description |
|---|---|---|
source | string | Resolved absolute path of the source file |
dest | string | Resolved absolute path of the destination file |
Example
name: Copy a template into place
actions:
- name: copied
component: file:copy
vars:
source: templates/base.md
dest: out/draft.md