Skip to content

Commit e1b2b10

Browse files
committed
Setup GitHub Pages deployment
1 parent 64ae552 commit e1b2b10

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

npm/index.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ function info(msg: string) {
7070
console.log(`${c.gray(s.line)} ${c.dim(msg)}`);
7171
}
7272

73-
function end(msg: string) {
74-
console.log(`${c.gray(s.branch)} ${msg}`);
75-
}
73+
7674

7775
// Spinner
7876
class Spinner {
@@ -170,9 +168,9 @@ async function handleSecrets() {
170168
]);
171169

172170
if (choice === 'skip') {
173-
end('Skipped. Set manually with:');
174-
console.log(` ${c.dim('$')} ${c.yellow('gh secret set -f .env')}`);
175-
console.log(` ${c.dim('$')} ${c.yellow('gh secret set KEY_NAME')}`);
171+
info('Skipped. Set manually with:');
172+
console.log(`${c.gray(s.line)} ${c.dim('$')} ${c.yellow('gh secret set -f .env')}`);
173+
console.log(`${c.gray(s.line)} ${c.dim('$')} ${c.yellow('gh secret set KEY_NAME')}`);
176174
return;
177175
}
178176

@@ -185,7 +183,7 @@ async function handleSecrets() {
185183
}
186184

187185
if (!existsSync(envPath) || readFileSync(envPath, 'utf-8').trim().length === 0) {
188-
end('⚠ .env is empty, skipping secret upload');
186+
info('⚠ .env is empty, skipping secret upload');
189187
return;
190188
}
191189

@@ -261,7 +259,7 @@ async function waitForBuild() {
261259
}
262260

263261
process.stdout.write('\r\x1b[K');
264-
end('⚠ Timeout after 5 minutes');
262+
info('⚠ Timeout after 5 minutes');
265263
info(`Check status manually: ${c.cyan(`https://github.com/${repo}/actions`)}`);
266264
return false;
267265
}

0 commit comments

Comments
 (0)