Skip to content

Commit

Permalink
chore(docs): static resource 404 떨어지는 이슈 해결 (#64)
Browse files Browse the repository at this point in the history
* fix(docs): .nojekyll 파일 생성

* fix(docs): .nojekyll 파일 재생성

* fix(docs): 배포 테스트

* chore(docs): 배포 테스트

* chore(docs): 배포 테스트

* CI/CD 타겟 브랜치 수정
  • Loading branch information
evan-moon authored Mar 27, 2021
1 parent e254058 commit 7471afa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ const env = process.env.ENV;
const token = process.env.ACCESS_TOKEN;
const deployTarget = env === 'alpha' ? 'ui-kit.alpha.lubycon.io' : 'ui-kit.lubycon.io';

console.log('📦 UI Kit 문서 알파 배포를 준비 중 입니다...');
console.log('📦 UI Kit 문서 배포를 준비 중 입니다...');

console.log('🌱 CNAME 만드는 중...');
fs.renameSync(path.resolve(`./CNAME.${env}`), path.resolve('./out/CNAME'));
fs.closeSync(fs.openSync(path.resolve('./out/.nojekyll'), 'w'));
console.log('🌱 CNAME 생성 완료');

ghpages.publish(
Expand All @@ -19,12 +20,13 @@ ghpages.publish(
remote: 'origin',
repo: `https://${token}@github.com/Lubycon/${deployTarget}`,
message: `UI Kit 문서 배포`,
dotfiles: true,
},
(err) => {
if (err) {
throw err;
} else {
console.log('🚀 UI Kit 문서 알파 배포가 완료되었습니다!');
console.log('🚀 UI Kit 문서 배포가 완료되었습니다!');
}
}
);

0 comments on commit 7471afa

Please sign in to comment.