-
-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (35 loc) · 1.01 KB
/
PyPI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
name: PyPI Yükleyici
on:
push:
paths:
- setup.py
pull_request:
paths:
- setup.py
jobs:
PyPIYukleyici:
name : PyPI Yükleyici
runs-on : ubuntu-latest
steps:
- name: Depo Kontrolü
uses: actions/checkout@v3
- name: Python 3.10.8 Yükle
uses: actions/setup-python@v4
with:
python-version: "3.10.8"
- 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 build twine
- name: Kütüphaneyi PyPI'ye Yükle
env :
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run : |
python -m build --sdist --wheel
twine check dist/*
python -m twine upload dist/*
rm -rf build/ dist/ *.egg-info/