Get ready for PyPI

This commit is contained in:
Yusuf Cihan
2025-04-17 18:08:59 +03:00
parent fe3cf155e3
commit 06b61ab774
4 changed files with 37 additions and 8 deletions

30
.github/workflows/python-publish.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Upload Python Package
on:
release:
types: [published]
workflow_dispatch: {}
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}