Skip to content
name: Build and publish package
on:
workflow_call:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install -e .[tests,elasticsearch5]
- name: Show python dependencies
run: |
python3 --version
pip freeze
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}