Python WebUI v2.5.0 #7
Workflow file for this run
This file contains hidden or 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
| name: Publish PyPi Package | |
| on: | |
| release: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies and Publish package | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --upgrade build | |
| python -m pip install --upgrade twine | |
| cd PyPI/Package/src/webui | |
| chmod +x bootstrap.sh | |
| ./bootstrap.sh | |
| cd ../.. | |
| python -m build | |
| python -m twine upload --repository pypi dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} |