Merge pull request #67 from kinow/update-docs-jupyterlab #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/* |