Skip to content

Merge pull request #487 from PsychoinformaticsLab/rel/0.4.4 #218

Merge pull request #487 from PsychoinformaticsLab/rel/0.4.4

Merge pull request #487 from PsychoinformaticsLab/rel/0.4.4 #218

name: Publish Python 🐍 distributions πŸ“¦ to PyPI
on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Setup deps
run: pip install wheel
- name: Build wheel
run: python setup.py sdist bdist_wheel
- name: Publish distribution πŸ“¦ to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}