Skip to content

v0.9.0-alpha

v0.9.0-alpha #15

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 }}