Add a newline to the end of some files and change identationto the deploy file

This commit is contained in:
Eduardo 2020-01-11 21:02:38 +01:00
parent f3e8027a51
commit 5a0ef4765c
3 changed files with 16 additions and 16 deletions

View file

@ -2,18 +2,18 @@ require('dotenv').config()
const GhostAdminApi = require('@tryghost/admin-api'); const GhostAdminApi = require('@tryghost/admin-api');
(async function main() { (async function main() {
try { try {
const api = new GhostAdminApi({ const api = new GhostAdminApi({
url: process.env.GHOST_ADMIN_API_URL, url: process.env.GHOST_ADMIN_API_URL,
key: process.env.GHOST_ADMIN_API_KEY, key: process.env.GHOST_ADMIN_API_KEY,
version: 'canary' version: 'canary'
}); });
// Deploy it to the configured site // Deploy it to the configured site
await api.themes.upload({file: '../liebling.zip'}); await api.themes.upload({file: '../liebling.zip'});
console.log('Theme successfully uploaded.'); console.log('Theme successfully uploaded.');
} catch (err) { } catch (err) {
console.error(err); console.error(err);
process.exit(1); process.exit(1);
} }
}()); }());