Skip to content

Commit

Permalink
Merge pull request #1256 from samchon/feature/sitemap
Browse files Browse the repository at this point in the history
Revive sitemap.xml
  • Loading branch information
samchon authored Sep 4, 2024
2 parents b9793f8 + f5dfb39 commit 771dc2b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions website/build/deploy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
const cp = require("child_process");
const fs = require("fs");
const deploy = require("gh-pages");

cp.execSync("npm run build", { stdio: "inherit" });

for (const file of fs.readdirSync(`${__dirname}/../public`))
if (
file === "robots.txt" ||
(file.startsWith("sitemap") && file.endsWith(".xml"))
)
fs.copyFileSync(
`${__dirname}/../public/${file}`,
`${__dirname}/../out/${file}`,
);

deploy.publish(
"out",
{
Expand Down

0 comments on commit 771dc2b

Please sign in to comment.