Skip to content

Apply suggestions from code review #191

Apply suggestions from code review

Apply suggestions from code review #191

Workflow file for this run

name: Build distribution
on: [push, pull_request]
jobs:
test:
runs-on: "ubuntu-latest"
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install build dependencies
run: python -m pip install build wheel
- name: Build distributions
shell: bash -l {0}
run: python setup.py sdist bdist_wheel
- name: Publish package to PyPI
if: github.repository == 'ns1/ns1-python' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
password: ${{ secrets.ns1_python_publish }}