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
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır. | |
name: KekikAkademi PyPI Yükleyici | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
jobs: | |
PyPIYukleyici: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11.8"] | |
steps: | |
- name : Depo Kontrolü | |
uses : actions/checkout@v4 | |
- name : Python ${{ matrix.python-version }} Sürümü Yükleniyor | |
uses : actions/setup-python@v5 | |
with : | |
python-version: ${{ matrix.python-version }} | |
- name : Python Sürümünü Göster | |
run : python -c "import sys; print(sys.version)" | |
- name : Gereksinimleri Yükle | |
run : | | |
python -m pip install --upgrade pip | |
pip install -U setuptools wheel twine | |
- name : Kütüphaneyi PyPI'ye Yükle | |
env : | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run : | | |
python setup.py bdist_wheel sdist | |
twine check dist/* | |
python -m twine upload dist/* | |
rm -rf build/ | |
rm -rf dist/ | |
rm -rf -- *.egg-info/ |