TheengsDecoder v1.8.2 #31
Workflow file for this run
This file contains 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-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
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 a source tarball | |
run: | | |
cd python | |
cp -r ../src . | |
python3 setup.py sdist | |
- name: Publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages-dir: python/dist/ |