From 1c71285cecd29626d28bcc1302e97cf6e7b79f32 Mon Sep 17 00:00:00 2001 From: evan-moon Date: Sat, 27 Mar 2021 12:34:46 +0900 Subject: [PATCH 1/6] =?UTF-8?q?fix(docs):=20.nojekyll=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/alpha-release-docs.yml | 1 + docs/scripts/deploy.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/alpha-release-docs.yml b/.github/workflows/alpha-release-docs.yml index 687a272b..871cfd3f 100644 --- a/.github/workflows/alpha-release-docs.yml +++ b/.github/workflows/alpha-release-docs.yml @@ -5,6 +5,7 @@ on: branches: - master - alpha + - fix/static-resource-serve jobs: alpha-release-ui-kit-docs: diff --git a/docs/scripts/deploy.js b/docs/scripts/deploy.js index acaf40f6..4c9aded9 100644 --- a/docs/scripts/deploy.js +++ b/docs/scripts/deploy.js @@ -10,6 +10,7 @@ console.log('πŸ“¦ UI Kit λ¬Έμ„œ μ•ŒνŒŒ 배포λ₯Ό μ€€λΉ„ 쀑 μž…λ‹ˆλ‹€...'); console.log('🌱 CNAME λ§Œλ“œλŠ” 쀑...'); fs.renameSync(path.resolve(`./CNAME.${env}`), path.resolve('./out/CNAME')); +fs.writeFileSync(path.resolve('./out/.nojekyll')); console.log('🌱 CNAME 생성 μ™„λ£Œ'); ghpages.publish( From ad9815717b2d2f30ceed241db63290843319415d Mon Sep 17 00:00:00 2001 From: evan-moon Date: Sat, 27 Mar 2021 12:43:28 +0900 Subject: [PATCH 2/6] =?UTF-8?q?fix(docs):=20.nojekyll=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=EC=9E=AC=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/scripts/deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scripts/deploy.js b/docs/scripts/deploy.js index 4c9aded9..e002147a 100644 --- a/docs/scripts/deploy.js +++ b/docs/scripts/deploy.js @@ -10,7 +10,7 @@ console.log('πŸ“¦ UI Kit λ¬Έμ„œ μ•ŒνŒŒ 배포λ₯Ό μ€€λΉ„ 쀑 μž…λ‹ˆλ‹€...'); console.log('🌱 CNAME λ§Œλ“œλŠ” 쀑...'); fs.renameSync(path.resolve(`./CNAME.${env}`), path.resolve('./out/CNAME')); -fs.writeFileSync(path.resolve('./out/.nojekyll')); +fs.closeSync(fs.openSync(path.resolve('./out/.nojekyll'), 'w')); console.log('🌱 CNAME 생성 μ™„λ£Œ'); ghpages.publish( From 4b06e3c27f4a6c18f8ced6578869f382b27bffd9 Mon Sep 17 00:00:00 2001 From: evan-moon Date: Sat, 27 Mar 2021 13:10:34 +0900 Subject: [PATCH 3/6] =?UTF-8?q?fix(docs):=20=EB=B0=B0=ED=8F=AC=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/scripts/deploy.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/scripts/deploy.js b/docs/scripts/deploy.js index e002147a..16a6bf2e 100644 --- a/docs/scripts/deploy.js +++ b/docs/scripts/deploy.js @@ -13,6 +13,12 @@ fs.renameSync(path.resolve(`./CNAME.${env}`), path.resolve('./out/CNAME')); fs.closeSync(fs.openSync(path.resolve('./out/.nojekyll'), 'w')); console.log('🌱 CNAME 생성 μ™„λ£Œ'); +fs.readdirSync(path.resolve('./out'), (_, files) => { + files.forEach((file) => { + console.log(file); + }); +}); + ghpages.publish( path.join(__dirname, '../out'), { From 73f58ae104b526c419f9783797069639ec44500f Mon Sep 17 00:00:00 2001 From: evan-moon Date: Sat, 27 Mar 2021 13:17:17 +0900 Subject: [PATCH 4/6] =?UTF-8?q?chore(docs):=20=EB=B0=B0=ED=8F=AC=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/scripts/deploy.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/scripts/deploy.js b/docs/scripts/deploy.js index 16a6bf2e..1aa554da 100644 --- a/docs/scripts/deploy.js +++ b/docs/scripts/deploy.js @@ -6,19 +6,13 @@ 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 생성 μ™„λ£Œ'); -fs.readdirSync(path.resolve('./out'), (_, files) => { - files.forEach((file) => { - console.log(file); - }); -}); - ghpages.publish( path.join(__dirname, '../out'), { @@ -31,7 +25,7 @@ ghpages.publish( if (err) { throw err; } else { - console.log('πŸš€ UI Kit λ¬Έμ„œ μ•ŒνŒŒ 배포가 μ™„λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€!'); + console.log('πŸš€ UI Kit λ¬Έμ„œ 배포가 μ™„λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€!'); } } ); From 88b5d635ec9a8a2ac462d927a3bdfe837f8d1f42 Mon Sep 17 00:00:00 2001 From: evan-moon Date: Sat, 27 Mar 2021 13:23:15 +0900 Subject: [PATCH 5/6] =?UTF-8?q?chore(docs):=20=EB=B0=B0=ED=8F=AC=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/scripts/deploy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/scripts/deploy.js b/docs/scripts/deploy.js index 1aa554da..0f253c95 100644 --- a/docs/scripts/deploy.js +++ b/docs/scripts/deploy.js @@ -20,6 +20,7 @@ ghpages.publish( remote: 'origin', repo: `https://${token}@github.com/Lubycon/${deployTarget}`, message: `UI Kit λ¬Έμ„œ 배포`, + dotfiles: true, }, (err) => { if (err) { From 49f915b7531978f2b716495e36cd8b94a58a1f01 Mon Sep 17 00:00:00 2001 From: evan-moon Date: Sat, 27 Mar 2021 13:29:42 +0900 Subject: [PATCH 6/6] =?UTF-8?q?CI/CD=20=ED=83=80=EA=B2=9F=20=EB=B8=8C?= =?UTF-8?q?=EB=9E=9C=EC=B9=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/alpha-release-docs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/alpha-release-docs.yml b/.github/workflows/alpha-release-docs.yml index 871cfd3f..687a272b 100644 --- a/.github/workflows/alpha-release-docs.yml +++ b/.github/workflows/alpha-release-docs.yml @@ -5,7 +5,6 @@ on: branches: - master - alpha - - fix/static-resource-serve jobs: alpha-release-ui-kit-docs: