add publishing to pip

This commit is contained in:
cwilvx
2025-08-31 15:36:54 +03:00
parent 070ed009c2
commit 5d200fff30
4 changed files with 344 additions and 1 deletions
+29
View File
@@ -31,6 +31,14 @@ on:
options:
- true
- false
publish_pypi:
description: "Publish to PyPI"
required: true
type: choice
default: "false"
options:
- true
- false
env:
PIP_USE_PEP517: true
@@ -360,3 +368,24 @@ jobs:
makeLatest: ${{github.event.inputs.is_latest == 'true'}}
artifacts: "client.zip,wheels/*,pyinstaller/*,appimage/*"
token: ${{ secrets.PAT }}
publish-pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: [build-wheels]
if: ${{ github.event.inputs.publish_pypi == 'true' }}
permissions:
id-token: write
steps:
- name: Download wheel artifacts
uses: actions/download-artifact@v4
with:
name: wheels
path: dist
merge-multiple: true
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true