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');
(async function main() {
try {
const api = new GhostAdminApi({
url: process.env.GHOST_ADMIN_API_URL,
key: process.env.GHOST_ADMIN_API_KEY,
version: 'canary'
});
try {
const api = new GhostAdminApi({
url: process.env.GHOST_ADMIN_API_URL,
key: process.env.GHOST_ADMIN_API_KEY,
version: 'canary'
});
// Deploy it to the configured site
await api.themes.upload({file: '../liebling.zip'});
console.log('Theme successfully uploaded.');
} catch (err) {
console.error(err);
process.exit(1);
}
// Deploy it to the configured site
await api.themes.upload({file: '../liebling.zip'});
console.log('Theme successfully uploaded.');
} catch (err) {
console.error(err);
process.exit(1);
}
}());