Skip to content

Publish Package

Publish Package #13

Workflow file for this run

name: Publish Package
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.4.0
- name: Install dependencies
run: |
poetry install
- name: Build package
run: |
poetry build
- name: Publish package
env:
POETRY_PYPI_TOKEN: ${{ secrets.POETRY_PYPI_TOKEN }}
run: |
poetry publish --username __token__ --password $POETRY_PYPI_TOKEN