Site → Deploy
AI-generatedSummary
Publishes one or more files to an existing Hostsmith site as a new site version, using binary input data or inline text, uploaded through presigned URLs and then finalized.
Inputs
- Site (required) — Site to deploy to, chosen from a searchable list of your sites (across us and eu partitions) or entered by Site ID.
- Partition — Data partition (us or eu). Auto-Detect works only when the site is picked From List. If you enter a Site ID manually, set this to us or eu, otherwise the node errors.
- Files (required) — One or more file rows. At least one is required. Each row has a Source (Binary or Text), a Binary Property name (default 'data') or inline Content, and a required File Name giving the destination path in the site (e.g. index.html or assets/style.css).
Output shape
One output item per input item, containing the new versionId merged with the fields returned by the finalize API call.
Files over 5 MB are uploaded in 5 MB multipart parts. Each part's upload must return an ETag or the operation fails. Errors include no files, a missing file name, a missing binary property, and an unresolvable partition. With Continue On Fail, the item returns {error: message}. Binary files are read from the input item, never the filesystem. For large deploys, n8n recommends N8N_DEFAULT_BINARY_DATA_MODE=filesystem to limit memory use.
Examples
Example 1: Publish generated HTML to a site picked from the list.
Site: From List; Partition: Auto-Detect; Files: one row with Source=Text, File Name=index.html, Content set to an expression holding the HTML.
Example 2: Deploy a downloaded file to a site by ID.
Site: By ID; Partition: us; Files: one row with Source=Binary, Binary Property=data, File Name=assets/logo.png.