Skip to content

Merge pull request #4 from k4rimDev/dev #1

Merge pull request #4 from k4rimDev/dev

Merge pull request #4 from k4rimDev/dev #1

Workflow file for this run

name: Publish to PyPI
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install --no-dev
- name: Build the package
run: poetry build
- name: Publish to PyPI
env:
POETRY_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish --build --username __token__ --password $POETRY_PASSWORD