์ ๊ทผ (์์ฝ)
์งํ ์ค์ธ ํ๋ก์ ํธ๋ฅผ ๋ฐฐํฌํ๋ ๋จ๊ณ(develop → master)์์ Release์ Tag ๊ด๋ฆฌ๋ฅผ ์ํ๋ค. ์ ์ฉํ ๋ด์ฉ์ ๊ธฐ๋กํ๋ค.
(์ถ๊ฐ๋ก, Github repo์ Verified ์ธ์ฆ๊น์ง)
1. ๋ฐฐํฌ ์ค๋น
- develop ๋ธ๋์น ์ต์ ํ
- master ๋ธ๋์น๋ก ๋ณํฉ
2. ์๋์ผ๋ก Tag ๋ฌ๊ธฐ (Git Flow ์์ด)
- ๋ฆด๋ฆฌ์ฆ ํ๊ทธ ์์ฑ git tag -s v2.0.4 -m "Release v2.0.4"
- ์๊ฒฉ์ push (git push origin master / git push origin v2.0.4)
3. Github repo Release ๋ฉ๋ด
- Draft a new release
4. Github Repo > Tag > Verified
- '-s' ์ '-a'์ ์ฐจ์ด
( -s ๋ก ํ๋ค๋ฉด ๊ธ ์ฐธ๊ณ : GPG Key ์์ฑ )
๋ฐฉ๋ฒ
1. ๋ฐฐํฌ ์ค๋น
- develop ๋ธ๋์น ์ต์ ํ
- master ๋ธ๋์น๋ก ๋ณํฉ
2. ์๋์ผ๋ก Tag ๋ฌ๊ธฐ (Git Flow ์์ด)
- ๋ฆด๋ฆฌ์ฆ ํ๊ทธ ์์ฑ git tag -s v2.0.4 -m "Release v2.0.4"
- ์๊ฒฉ์ push (git push origin master / git push origin v2.0.4)
## ๋จ์ ์ฃผ์(๋ฉ์์ง) ๋ฌ๋ฆฐ Tag
git tag -a v2.0.4 -m "ํ๊ทธ ์ค๋ช
๋ฉ์์ง" -f (๋ฎ์ด์ฐ๊ธฐ)
## GPG ์๋ช
ํฌํจ O Tag
git tag -a v2.0.4 -m "ํ๊ทธ ์ค๋ช
๋ฉ์์ง"
3. Github repo Release ๋ฉ๋ด
Draft a new release
- Previous tag ๋ฅผ ์ ํํ๋ฉด, 'Describe this release (์ค๋ช )'๋์ diff ์ ๋ด์ญ์ด ๋์ด๋๋ค.
- ๋ง์ผ ํฌ๋งํ๋ Tag ํญ๋ชฉ์ด ๋ณด์ด์ง ์๋๋ค๋ฉด origin push๊ฐ ์ ์์ ์ผ๋ก ๋์ง ์์ ๊ฒ์ด๋ค.
4. Github Repo > Tag > Verified
'-s' ์ '-a'์ ์ฐจ์ด
( -s ๋ก ํ๋ค๋ฉด ๊ธ ์ฐธ๊ณ : GPG Key ์์ฑ )
GitHub์ ํ๊ทธ ๋ชฉ๋ก์์ ๋ณด์ด๋ “Verified” ๋ฑ์ง๋
- ํ๊ทธ๊ฐ GPG ์๋ช (๋๋ GitHub ์์ฒด ์๋ช )์ด ํฌํจ๋—์ฆ “์ ๋ขฐํ ์ ์๋” ๋ฐฉ์์ผ๋ก ์์ฑ๋์๋ค๋ ๋ป์ด๊ณ ,
- ๋ฐ๋๋ก ํ์๊ฐ ์๋ ํ๊ทธ๋ ์๋ช ๋์ง ์์ ํ๊ทธ(lightweight tag)
(* GPG ํค(→ GNU Privacy Guard ํค) : ๊ณต๊ฐํค ์ํธํ ๋ฐฉ์์ ์ฌ์ฉํ๋ “์ ์์๋ช ๋ฐ ์ํธํ” ์ฉ ํค ์.)
- Verified → GPG ์๋ช ๋ annotated tag ๋๋ GitHub UI๊ฐ ์๋ ์๋ช ํ ํ๊ทธ
- No badge → ์์ํ lightweight tag(๋๋ GPG ์๋ช ์๋ annotated tag)
'๐ป DEV > GitHub' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Github] GPG Keys ์์ฑ & ๋ฑ๋กํ๊ธฐ (0) | 2025.05.15 |
---|---|
[Github Actions] ํ๋ก์ ํธ์ github Actions ์ ์ฉ (0) | 2025.03.10 |
[Github] ํ๋ก์ ํธ ์์ฑ (๋ก์ปฌ ์ ์ฅ์์์ ์๊ฒฉ ์ ์ฅ์ Push) (0) | 2025.03.10 |
[ssh-key] ๋ค์ค ๋ฑ๋ก์ผ๋ก ์ธํ ์ธ์ ์ค๋ฅ ํด๊ฒฐ (0) | 2025.03.07 |
[Github - git flow]Git Flow ์ ๋ต - squash merge (0) | 2024.08.06 |
๋๊ธ