chore: HEADERS 기본 버전 변경 #29
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
| name: Build PyPI Package | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| release-package: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.event.head_commit.message, 'Release') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: install dependencies | |
| run: | | |
| pip install -e . | |
| pip install hatch | |
| - name: build and publish package | |
| run: | | |
| hatch build | |
| hatch publish -u __token__ -a "${{ secrets.PYPI_TOKEN }}" | |
| build-package: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.event.head_commit.message, 'Build') | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: install dependencies | |
| run: | | |
| pip install -e . | |
| - name: build and publish package | |
| run: | | |
| hatch build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: build data | |
| path: dist/* |