TheengsDecoder v1.9.9 #41
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 to Pypi | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [published] | |
| jobs: | |
| build-n-publish: | |
| name: Build and publish distributions to PyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 # deep clone for setuptools-scm | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install pypa/build | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| pip3 install setuptools setuptools_scm cmake wheel scikit-build ninja | |
| - name: Build distributions | |
| run: | | |
| cd python | |
| cp -r ../src . | |
| python3 setup.py sdist | |
| cd .. | |
| - name: Publish distribution 📦 to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| packages-dir: python/dist/ |