Open Iain-S opened 3 years ago
Roughly, we would want to add a github workflow that looks something like
name: Publish package
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Bootstrap poetry
shell: bash
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry
python -m poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}. # need to add this to repo
python -m poetry publish --build
or we could use https://github.com/marketplace/actions/publish-python-poetry-package.
It would be nice if GitHub could automatically publish netts when a new GitHub release is created.