Skip to content

github action adjustments #5

github action adjustments

github action adjustments #5

Workflow file for this run

name: Publish Poetry Package
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11' # Adjust the Python version as needed
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH=$HOME/.local/bin:$PATH
- name: Install dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --username __token__ --password $POETRY_PYPI_TOKEN_PYPI