-
-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (40 loc) · 1.25 KB
/
pypiYukle.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
44
45
46
47
48
49
50
# 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/