-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6088045
commit ea33537
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Release - Publish to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
publish: | ||
name: Build and Publish Package | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Repository Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python Environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.13" | ||
cache: "pip" | ||
|
||
- name: Install Build Tools | ||
run: | | ||
python -m pip install --upgrade build twine | ||
- name: Build Distribution Package | ||
run: python -m build | ||
|
||
- name: Validate Package Metadata | ||
run: twine check dist/* | ||
|
||
- name: Upload to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |