Skip to content

Publish Package on PyPi #1

Publish Package on PyPi

Publish Package on PyPi #1

Workflow file for this run

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