Publishing on Github Pages (with static website)

JIY00Nยท2023๋…„ 3์›” 16์ผ
0

Git

๋ชฉ๋ก ๋ณด๊ธฐ
4/5
post-thumbnail

2023.03.16

๐ŸŽฏ github desktop์„ ์ด์šฉ

1. Static Website๋ฅผ Github Pages๋กœ ๋ฐฐํฌํ•˜๊ธฐ

1. branch ์ƒ์„ฑ

โœ” branch ์ƒ์„ฑ์‹œ ์ด๋ฆ„์„ ๋ฐ˜๋“œ์‹œ 'gh-pages'๋กœ ์„ค์ •

2. Publish branch

3. Repository๋กœ ์ด๋™

โœ” gh-pages -> Environments(github-pages) ํด๋ฆญ -> View deployment

4. URL๋กœ ๊ณต์œ  ๊ฐ€๋Šฅ

โœ” URL = https://์œ ์ €๋„ค์ž„.github.io/์ €์žฅ์†Œ์ด๋ฆ„

2. ๋ฐฐํฌํ•œ ๊นƒํ—ˆ๋ธŒ ํŽ˜์ด์ง€ ์—…๋ฐ์ดํŠธ ํ•˜๊ธฐ

1. master branch๋กœ ์ด๋™ํ•œ ํ›„ ์ˆ˜์ • -> commit -> push

2. gh-pages๋กœ ์ด๋™

โœ” branch -> update from master -> push

3. Repository๋กœ ์ด๋™

โœ” gh-pages -> Environments(github-pages) ํด๋ฆญ -> View deployment -> ์ƒˆ๋กœ๊ณ ์นจ

profile
๋ธ”๋กœ๊ทธ ์ด์ „ ํ–ˆ์Šต๋‹ˆ๋‹ค. https://yoon-log.vercel.app/

0๊ฐœ์˜ ๋Œ“๊ธ€