diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..ceec6df --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,26 @@ +name: pypi + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/jmp/__init__.py b/jmp/__init__.py index b2a154a..c8cc87d 100644 --- a/jmp/__init__.py +++ b/jmp/__init__.py @@ -26,7 +26,7 @@ from jmp._src.policy import half_dtype from jmp._src.policy import Policy -__version__ = "0.0.1.dev" +__version__ = "0.0.2" __all__ = ( "all_finite",