File tree Expand file tree Collapse file tree 2 files changed +22
-36
lines changed Expand file tree Collapse file tree 2 files changed +22
-36
lines changed Original file line number Diff line number Diff line change @@ -277,20 +277,35 @@ Lang2SQL은 LangGraph를 사용한 다단계 접근 방식을 따릅니다:
277277### 수동 빌드
278278
279279``` bash
280- python setup.py sdist bdist_wheel
281- twine upload dist/ *
280+ uv build
281+ UV_PUBLISH_TOKEN= $PYPI_API_TOKEN uv publish --token $UV_PUBLISH_TOKEN
282282```
283283
284- ### 자동 릴리스
284+ ### 자동 배포(GitHub Actions)
285285
286- ` v* ` 형식의 태그를 푸시하여 자동 PyPI 배포 트리거:
286+ 사전 준비: GitHub Secrets에 ` PYPI_API_TOKEN ` 등록
287287
288288``` bash
289- git tag v1.0.0
290- git push origin v1.0.0
289+ # 1) 버전 업데이트
290+ # - 버전 파일: version.py 의 __version__ = "X.Y.Z"
291+ git add version.py
292+ git commit -m " chore: bump version to X.Y.Z"
293+
294+ # 2) 태그 생성/푸시 (v* 형식이 트리거)
295+ git tag vX.Y.Z
296+ git push origin HEAD
297+ git push origin vX.Y.Z
291298```
292299
293- ** 참고** : GitHub Secrets에 ` PYPI_API_TOKEN ` 설정 필요.
300+ 설명: ` v* ` 태그가 푸시되면 ` .github/workflows/pypi-release.yml ` 이 실행되어 uv로 빌드/배포합니다.
301+
302+ ### TestPyPI로 사전 검증(선택)
303+
304+ ``` bash
305+ uv build
306+ UV_PUBLISH_TOKEN=$TEST_PYPI_API_TOKEN \
307+ uv publish --repository-url https://test.pypi.org/legacy/ --token $UV_PUBLISH_TOKEN
308+ ```
294309
295310---
296311
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments