Skip to content

Merge pull request #67 from kinow/update-docs-jupyterlab #7

Merge pull request #67 from kinow/update-docs-jupyterlab

Merge pull request #67 from kinow/update-docs-jupyterlab #7

Workflow file for this run

# Always build and verify our release process, but then also conditionally
# upload to PyPI if a git tag triggered the workflow.
#
name: Release
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-verify-upload-release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install dependencies
run: |
pip install --upgrade pip
pip install build twine
pip freeze
- name: build release
run: |
python -m build --sdist --wheel .
ls -l dist
- name: verify release metadata
run: python -m twine check dist/*
- name: upload release to pypi
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: twine upload dist/*