async function deployAtom()

in scripts/deploy.js [82:93]


async function deployAtom(atomName) {
    spinner.start(`Deploying atom '${atomName}'`)

    const files = filesToDeploy(atomName);
    for (let file of files) {
        const body = file.body || fs.createReadStream(file.path);
        await upload(body, file.key, file.params || {});
    }

    const atomURL = `https://content.guardianapis.com/atom/interactive/interactives/${config.path}/${atomName}`
    spinner.succeed(`Atom '${atomName}' (${version}) deployed to: ${atomURL}`)
}