Repository navigation
Chore: 릴리즈 워크플로에 main 한정 + 태그/PyPI 가드 추가 - #166
Merged
Merged
Conversation
- 수동 dispatch 는 유지하되 main 외 브랜치에서 실행되면 실패 - main HEAD 에 v* 태그 없으면 실패 - 해당 버전이 이미 PyPI 에 publish 됐으면 실패
- 실패 시 run 페이지 상단 Summary 에 "Release pre-flight FAILED" + Reason 표시 - 실패 스텝 이름이 항상 "Pre-flight checks" 하나로 일관되어 어떤 가드가 막혔는지 한 번에 파악 가능 - 성공 시 Summary 에 tag/version 기록
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경
수동 dispatch 자체는 유지(릴리즈는 사람이 명시적으로 트리거). 다만 사고 방지를 위해 잡 시작부에 다음 가드 3개를 추가:
GITHUB_REF != refs/heads/main이면 즉시 실패. dispatch 시 다른 브랜치를 선택해도 publish 막힘git tag --points-at HEAD로v*태그 조회. 없으면 실패. setuptools-scm dev 버전이 PyPI 로 새는 사고 방지https://pypi.org/pypi/dhapi/<version>/json으로 사전 조회. 200(이미 존재) 이면 실패, 404 면 진행의도된 운영 흐름
git tag vX.Y.Z <sha> && git push origin vX.Y.ZTest plan
vX.Y.(Z+1)) 푸시 후 dispatch → 정상 빌드/배포되는지