CI: add new manual PyPI publish workflow

This commit is contained in:
w4nn4d13
2026-04-06 23:28:06 +05:30
parent 3377f62b6b
commit 482b06f8fe
+31
View File
@@ -0,0 +1,31 @@
name: Publish PyPI (Manual New)
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build package
run: python -m build
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine upload dist/* --skip-existing --verbose