Add a newline to the end of some files and change identationto the deploy file
This commit is contained in:
parent
f3e8027a51
commit
5a0ef4765c
|
@ -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);
|
||||
}
|
||||
}());
|
Loading…
Reference in a new issue