-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_posting.sh
More file actions
51 lines (34 loc) ยท 3.72 KB
/
run_posting.sh
File metadata and controls
51 lines (34 loc) ยท 3.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cat << "EOF" | sed -e '1,/```/s/```/---/'
# 0. ๋ธ๋ก๊ทธ ํฌ์คํ
์ ์ฒด ๊ณผ์

# 1. github actions
[๊ณต์ ํ์ด์ง](https://docs.github.com/en/actions)์์ actions์ ๋ํด ์๋์ ๊ฐ์ด ๋งํ๊ณ ์์ต๋๋ค
> Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. You can discover, create, and share actions to perform any job you'd like, including CI/CD, and combine actions in a completely customized workflow.
github actions๋ฅผ ๊ตฌ์ฑํ๊ฒ ๋๋ฉด github ์ธํฐํ์ด์ค ๋ฑ์ ํ์ฉํ์ฌ ์๋ํ๋ workflow๋ฅผ ๊ตฌ์ฑํ ์ ์์ต๋๋ค. CI/CD ๊ฐ์ ํ๋ก์ธ์ค๋ฅผ ๊ตฌ์ฑํ ์๋ ์๊ณ bot ๊ฐ์ ๋์๋ค์ ์ฒ๋ฆฌํ๋๋ก ํ๊ฒ ํ ์๋ ์์ต๋๋ค.
์ฌ๊ธฐ์๋ actions๋ฅผ ํ์ฉํด์ github issue๋ก ํฌ์คํ
์ ๊ด๋ฆฌํ๋ ๊ณผ์ ์ ์ค๋ช
ํด๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
# 2. jekyll posting ๋ฐฉ๋ฒ ์ดํด
[jekyll posting ๊ตฌ์กฐ](https://jekyllrb.com/docs/posts/)๋ฅผ ์ดํด๋ณด๋ฉด ํด๋์ md ํ์ผ์ ํฌํจ์์ผ์ฃผ๋ฉด ๋ฐฐํฌ๋๋๋ก ๊ตฌ์ฑ๋์ด ์์์ ์ ์ ์์ต๋๋ค.
ํ์ผ์ ์ด๋ฆ์ ํํ๋ฅผ ๋ฐ๋ผ์ค์ผ ํฉ๋๋ค.
์ค์ ๊ตฌ์ฑ๋๋ md ํ์ผ์ ๋ด์ฉ์ ์๋์ ๊ฐ์ด ์ฐ๋ฉด ๋๋ค๊ณ ์ค๋ช
ํ๊ณ ์์ต๋๋ค.
์ด์ ๊ธ์์ minimal-mistakes ํ
๋ง๋ฅผ ๋ฐฐํฌํ๋๋ฐ, ํด๋น ํํ์ด์ง์์๋ ์ฌ๋ฌ ํฌ์คํ
์ํ๋ค์ ํ์ธํ ์ ์์ต๋๋ค.
# 3. github issue๋ก ๋ธ๋ก๊ทธ ํฌ์คํ
์ฝ๊ฒ ํ๊ธฐ actions ์๊ฐ
๋ก์ปฌ์์ md ํ์ผ๋ก ๋ธ๋ก๊ทธ๋ฅผ ํฌ์คํ
ํ๋ค๋ณด๋ ํฌ์คํ
๋ค์ ๊ด๋ฆฌํ๊ธฐ ์ด๋ ต๋ค๋ ์๊ฐ์ ํ์ต๋๋ค.
๊ฒฐ๊ตญ ๋ผ๋ ์์ด๋์ด์ ์ ์๊ฐ์ผ๋ก actions ํ๋ก์ ํธ๋ฅผ ๊ตฌ์ฑํด๋ดค์ต๋๋ค.
๋ด์ฉ์ ๋จ์ํ๋ฉฐ, ์ด๊ธฐ ๊ตฌ์ฑ๋ actions ํ๋ก์ ํธ๋ [๋งํฌ](https://github.com/0leaf/issue-to-md-posting)๋ฅผ ํ์ธํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
## 3.1 actions ๊ตฌ์ฑํ๊ธฐ
[๋งํฌ](https://github.com/0leaf/issue-to-md-posting)์ ์ค๋ช
์ ์ฐธ๊ณ ํ์ฌ ๊ตฌ์ฑํด๋ด
๋๋ค.
์๋ ๋ด์ฉ์ ๋ณต์ฌํ์ฌ actions๋ฅผ ๊ตฌ์ฑํ๋ฉฐ, ์ดํด๋ฅผ ๋๊ธฐ ์ํด ๊ณผ์ ์ ๋จ๊น๋๋ค.

## 3.2 issue template ๊ตฌ์ฑํ๊ธฐ
github issues๋ ๋ฐ๋ณต์ ์ผ๋ก ์ฐ๋ ๊ตฌ์กฐ๋ฅผ template๋ก ๊ตฌ์ฑํ ์ ์์ต๋๋ค. ๋งค๋ฒ ํฌ์คํ
meta ์ ๋ณด๋ ๊ฐ์ ๊ตฌ์กฐ๋ก ๋์ด์๊ธฐ ๋๋ฌธ์ ์ด๋ฅผ template์ผ๋ก ๋ง๋ค์ด ๋๋ ๊ณผ์ ์ ์ค๋ช
ํฉ๋๋ค.
์์ ํฌ์คํ
๊ธฐ๋ณธ ๊ตฌ์กฐ๋ ์ดํด๋ดค์ผ๋ minimal-mistakes์ ๊ตฌ์กฐ์ ๋ง๋ ํ
ํ๋ฆฟ์ ์๋์ ๊ฐ์ ์ํ๋ก ์ฌ์ฉํ๋๋ก ํ๊ฒ ์ต๋๋ค.
markdown

# 4. ์ ์ฒด ๊ตฌ์ฑ ์ดํด
github issue ํญ์ ํฌ์คํ
ํ๊ณ ์ ํ๋ ํญ๋ชฉ์ md ๋ฅผ ์ง์ ๊ตฌ์ฑํ๊ณ , ํฌ์คํ
์
๋ฐ์ดํธ๋ฅผ ์ํ ๊ฒฝ์ฐ label์ release ํน์ ์ํ๋ tag name์ผ๋ก ๋ฌ์์ฃผ๋ฉด ์๋์ผ๋ก ๋ฐฐํฌ๋ฉ๋๋ค.
[issue-to-md-posting](https://github.com/0leaf/issue-to-md-posting)์ actions๋ฅผ ํ์ฉํ์๋๋ฐ, ์ดํด๋ณด๋ฉด github issue๋ฅผ md ํ์ผ๋ก push ํ๋ ๊ณผ์ ์ actions๋ก ๊ตฌ์ฑํด๋์์ต๋๋ค.
์ฃผ์ ๋ง ์ฐธ๊ณ ์ฌํญ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค
- ์ฒ๋ผ issue ์ ๋ชฉ์ ์์ฑํ ๊ฒฝ์ฐ ๊ณต๋ฐฑ์ -๋ก ์๋์ผ๋ก ๋ณํํ์ง๋ง ๋ ์ง ์ ํ์ ๋ง์ถฐ์ฃผ์ด์ผ ํจ
- ์ต์ด ์์ฑํ issue์ ์ ๋ชฉ์ ๋ณ๊ฒฝํ ๊ฒฝ์ฐ ํ์ผ ์ด๋ฆ์ด ๋ค๋ฅด๊ฒ ๊ฐ์ ๋ด์ฉ์ผ๋ก ํ์ผ์ด ์์ฑ๋๋ฏ๋ก ์ ์
- ํ์ฌ ๋ฒ์ ์ issue๋ฅผ ์ญ์ ํด๋ _post์ md ํ์ผ์ ์ญ์ ๋์ง ์์ผ๋ฏ๋ก ์ญ์ ๊ฐ ํ์ํ ๊ฒฝ์ฐ ์ง์ commit ๋ฐ์ํ์ฌ ์ญ์
EOF