Skip to content

Commit 5d4da34

Browse files
wkdgus1164claude
andcommitted
ci: PyPI 자동 배포 워크플로우 및 타입 마커 추가
GitHub Actions: - 태그 푸시 시 자동으로 PyPI 배포 - uv build 및 uv publish 사용 - PyPI API 토큰 사용 (PYPI_API_TOKEN secret) py.typed: - PEP 561 준수 타입 마커 파일 - mypy 등 타입 체커가 패키지 타입 힌트 인식 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 988a2e0 commit 5d4da34

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write # OIDC for trusted publishing
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
with:
19+
enable-cache: true
20+
21+
- name: Set up Python
22+
run: uv python install 3.12
23+
24+
- name: Install dependencies
25+
run: uv sync
26+
27+
- name: Run tests
28+
run: uv run pytest tests/ -v
29+
30+
- name: Build package
31+
run: uv build
32+
33+
- name: Publish to PyPI
34+
run: uv publish
35+
env:
36+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

src/ureca_document_parser/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)