Skip to content

Publish New Releases to Pypi #2

Publish New Releases to Pypi

Publish New Releases to Pypi #2

Workflow file for this run

name: Publish New Releases to Pypi
on:
release:
types: [published]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.1.13
- name: Install dependencies
run: |
poetry env use python
poetry install --no-root
- name: Build package
run: poetry build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_PROD }}