Skip to content

Commit 7e7cdf4

Browse files
committed
Show success conditionally
1 parent 0b8a5d4 commit 7e7cdf4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

deploy/actions.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ export default async function deploy(
2828

2929
try {
3030
await ghPages.publish(projectRoot, {});
31-
context.logger.info(
32-
`🚀 Your application is now available at ${options.deployUrl}`
33-
);
31+
if (options.deployUrl) {
32+
context.logger.info(
33+
`🚀 Your application is now available at ${options.deployUrl}`
34+
);
35+
} else {
36+
context.logger.info(`🚀 Your application is now on GitHub pages!`);
37+
}
3438
} catch (e) {
3539
context.logger.error(e);
3640
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-gh",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"description": "Deployment from the Angular CLI to GitHub pages",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)