Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit ad99729

Browse files
committed
build/deploy.js
1 parent fce2d56 commit ad99729

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/deploy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ getBranchName().then(
128128

129129
// Copy and update index.html
130130
console.info('Copy and update index.html');
131-
var index = fs.readFileSync(path + 'index.html', 'utf-8');
131+
var index = fs.readFileSync('index.html', 'utf-8');
132132
index = index.replace(/@@VERSION/g, pkg.version);
133133
index = index.replace(/@@DATE/, pkg.date);
134134
fs.writeFileSync(path + 'index.html', index);
@@ -183,9 +183,10 @@ getBranchName().then(
183183
fs.writeFileSync(path, index);
184184

185185
// Update 'latest' symbolic link
186-
fs.ensureSymlinkSync(pkg.dir, 'latest');
186+
fs.ensureSymlinkSync('gh-pages/' + pkg.dir, 'gh-pages/latest');
187187
}
188188
}
189+
189190
return Promise.resolve();
190191
})
191192

0 commit comments

Comments
 (0)