Simplekivy v.0.1.0-beta.1 #2
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: Upload Python Package | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| release-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip build wheel kivy>=2.3 | |
| - name: Build package | |
| run: | | |
| python -m build --wheel --sdist # Runs in root (where setup.py is) | |
| ls -la dist/ # Verify files | |
| - name: Verify distributions | |
| run: | | |
| pip install twine | |
| twine check dist/* | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pypi-release | |
| path: dist/ | |
| pypi-publish: | |
| needs: release-build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Required for PyPI trusted publishing | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/project/ErgoCreate-SimpleKivy/ | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: pypi-release | |
| path: dist/ | |
| - uses: pypa/gh-action-pypi-publish@release/v1 |