Skip to content

v0.8.11-alpha

v0.8.11-alpha #12

Workflow file for this run

name: Upload package to PyPI
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine pybind11
- name: Build package
run: |
git describe --tags --abbrev=0 > version.txt
python setup.py sdist
- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}