2022. 2. 16. 09:53ใGithub
๊นํ๋ธ๋ฅผ ํ๋กํ์ ๊พธ๋ฏธ๊ฒ ๋ค๊ณ ์๊ฐํ ๋ค์ ์ฌ๋ฌ ์ฌ๋๋ค์ ๊นํ๋ธ๋ฅผ ๊ตฌ๊ฒฝํ๋๋ฐ
๋๋ถ๋ถ์ ์ฌ๋๋ค์ด
์ด๋ฐ๊ฑธ ํด๋์๊ธธ๋ ๋ ๋๋ ๋์น ์ ์์ง ํ๊ณ ๋ฐฉ๋ฒ์ ์ฐพ์๋ดค๋ค.
๋ฐฉ๋ฒ์ ๊ณต์ ํ๋ฉด ์ข์ ๊ฒ ๊ฐ์์ ๊ธฐ๋กํด๋๋ค.
1๏ธโฃ ๋จผ์ https://github.com/techinpark/productive-box ์ ๋ค์ด๊ฐ์ fork ํ๋ค.
https://github.com/techinpark/productive-box
GitHub - techinpark/productive-box: Are you an early ๐ค or a night ๐ฆ? Let's check out in gist
Are you an early ๐ค or a night ๐ฆ? Let's check out in gist - GitHub - techinpark/productive-box: Are you an early ๐ค or a night ๐ฆ? Let's check out in gist
github.com
๊ทธ๋ฅ ๋๋ฅด๊ธฐ๋ง ํ๋ฉด ๋๋ค. ๊ฐ๋จํ๋ค.
2๏ธโฃ gist ์์ฑํ๊ธฐ
Discover gists
GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
์ ๊ฐ์ create public gistํ๋ค!!
public ์ผ๋ก ์ํ๋ฉด ๋์ค์ pin ๊ณ ์ ์ ํ์ง ๋ชปํ๋๊น ๊ผญ public์ผ๋ก ์์ฑํด์ผํ๋ค.
์ฌ๊ธฐ์ ์ ๋ชฉ์ด๋ ๋ด์ฉ์ ๊ทธ๋ฅ ์๋ฌด๋ ๊ฒ๋ ์์ฑํด๋ ๋๋ค. ์ด์ฐจํผ ๋ณ๊ฒฝ๋๋ค.
๊ทธ๋ฆฌ๊ณ ์์ฑ๋ GIST_ID๋ฅผ ์ ์ฅํด๋๋ค.
gist.github.com/์ฌ์ฉ์์ด๋ฆ/GIST_ID
3๏ธโฃ Github Token ์์ฑํ๊ธฐ
๊นํ๋ธ ํํ์ด์ง๋ก ์์ Settings -> Developer settings -> Personal access tokens
์ฌ๊ธฐ์ Generate new token ๋๋ฌ์
repo์ gist๋ฅผ ๋๋ฅด๊ณ ํ ํฐ์ ์์ฑํ๋ค.
ํ ํฐ์ ํ๋ฒ ์์ฑํ๋ค์์ ๋น ์ ธ๋์ค๋ฉด ๋ค์ ๋ณผ ์ ์์ผ๋๊น ๋ณต์ฌํด์ ์ ์ฅํด๋๋ค!!!
4๏ธโฃ ์์ฑํ Token๊ณผ GIST_ID ์ ์ฉํ๊ธฐ
์๊น forkํ๋ ๋ด ์ ์ฅ์์ ๋ ํฌ์งํ ๋ฆฌ์ ๊ฐ์ settings -> Secret์ผ๋ก ๋ค์ด๊ฐ๋ค.
GH_TOKEN์ ์๊น ์์ฑํ๋ ํ ํฐ๊ฐ์ ์ ๋ ฅํด์ ์์ฑํ๊ณ , GIST_ID ์ญ์ ๊ฐ์ ๋ฃ์ด ํ๊ฒฝ๋ณ์๋ฅผ ์์ฑํด์ค๋ค.
5๏ธโฃ Action ํ์ฑํ์ํค๊ธฐ
์๊น forkํ๋ ๋ ํฌ์งํ ๋ฆฌ์ Action ํญ์ผ๋ก ๊ฐ๋ฉด I understand my workflows, go ahead and enable them ์ด๋ฐ ๋ฒํผ์ด ์์ ๊ฒ์ด๋ค. ๊ทธ๊ฑธ ํด๋ฆญํด์ค๋ค!
๊ทธ ํ์ Update gist์ ๊ฐ์
Enable workflow๋ฅผ ๋๋ฌ ํ์ฑํ ์์ผ์ฃผ๋ฉด ๋๋ค!!
6๏ธโฃ ๊ฒฐ๊ณผ ํ์ธํ๊ธฐ
๋ฐ๋ก ๊ฒฐ๊ณผ๋ฅผ ํ์ธํ๊ณ ์ถ๊ธฐ ๋๋ฌธ์ forkํ๋ ๋ ํฌ์งํ ๋ฆฌ์ ReadMe๋ฅผ ์ด์ง ์ํฐ์ ๋ ์ณ์ ์์ ํด์ฃผ๊ณ Updateํด์ค๋ค์
Action์ผ๋ก ๊ฐ๋ฉด
์ด๋ ๊ฒ ๋ ๊ฒ์ ํ์ธํ ์ ์๋ค.
๊ทธ๋ฆฌ๊ณ gist์์ ๋ณด๋ฉด
์๊น ์๋ฌด๋ ๊ฒ๋ ๋ง๋ค์๋ gist๊ฐ ์ด๋ ๊ฒ ๋ณ๊ฒฝ๋ ๊ฒ์ ํ์ธํ ์ ์๋ค!
๋๋ ์์นจํ ์ธ๊ฐ์ด๋คใ ใ
7๏ธโฃ Github ํ๋กํ์ gist pinned ํ๊ธฐ
์ด์ github ํ๋กํ์์ Customize your pins ๋ฒํผ์ ๋๋ฌ ํด๋น gist๋ฅผ pinned ํ๋ฉด ๋๋ค.
๊ทธ๋ผ ์ด๋ ๊ฒ ์์ฑ๋ ๊ฒ์ ํ์ธํ ์ ์๋ค~~~