Skip to content

fixed indentation

fixed indentation #45

Workflow file for this run

---
name: publish_to_pypi
on:
push:
branches:
- quant-852
pull_request:
branches:
- main
types:
- closed
jobs:
build-n-publish:
#if: github.event.pull_request.merged == true
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_KEY }}
skip_existing: true