Skip to content

Publish package to Pypi #2

Publish package to Pypi

Publish package to Pypi #2

Workflow file for this run

name: Publish package to Pypi
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install deps
run: |
pip install twine
pip install -e .[dev]
- name: nbdev pypi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: nbdev_pypi