Skip to content

Publish Package on PyPi #9

Publish Package on PyPi

Publish Package on PyPi #9

Workflow file for this run

name: Publish Package on PyPi
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
# Install dependencies using Poetry
- uses: Gr1N/setup-poetry@v9
- uses: actions/cache@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- run: poetry --version
- run: poetry install --all-extras
- name: Build and publish package
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}