Skip to content

Commit

Permalink
chore: copy CNAME to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverEllipsis committed Jun 18, 2024
1 parent 394e4f4 commit a157c87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build:alipay": "node scripts/mini-program-site/index.js --type alipay",
"build:tt": "node scripts/mini-program-site/index.js --type tt",
"build": "lerna run build --no-private",
"docs:build": "dumi build",
"docs:build": "dumi build && chmod +x ./scripts/copy-cname.sh && ./scripts/copy-cname.sh",
"site:release": "chmod +x ./scripts/website-release.sh && ./scripts/website-release.sh 'update website'",
"test": "jest --no-cache",
"ci:test": "npm run test -- --coverage",
Expand Down
11 changes: 11 additions & 0 deletions scripts/copy-cname.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

#!/bin/bash

SOURCE_FILE="CNAME"
DESTINATION_FOLDER="docs-dist"

if [ ! -d "$DESTINATION_FOLDER" ]; then
mkdir -p "$DESTINATION_FOLDER"
fi

cp "$SOURCE_FILE" "$DESTINATION_FOLDER"

0 comments on commit a157c87

Please sign in to comment.