This acts outside the account, and a run has nobody to ask. The definition is refused when you save it unless a human step sits on the path that reaches this one.
hoststringrequiredWhich host.
storagestringAn object storage holding the files.
prefixstringWhich folder of it.
codestringA function module, instead of a storage.
One of storage and code is required.
A run cannot read a computer
A workspace folder exists for a local agent, on a machine. A workflow runs on the platform and reaches no machine — so the files must already be somewhere it can read. The refusal says so rather than failing later.
{ id: "publish", type: "hosting.deploy", config: {
host: "{{steps.host.output.host}}", storage: "…", prefix: "build/" } }{"id": "publish", "type": "hosting.deploy", "config": {
"host": "{{steps.host.output.host}}", "storage": "…", "prefix": "build/"}}Output
The deploy's identifier and the host's address — enough to roll back, or to tell someone where it is.
Some things are never published
Environment files, version-control folders and dependency folders are dropped, and what was dropped is reported. An app's server module is pulled out of the assets so its source is not served.
Retrying republishes
A retry from this step deploys again. That is usually what you want — and it is still a publication, so the approval it required has already been given once.