Skip to content

Refactor BaseParser and subclass parsers #25

Refactor BaseParser and subclass parsers

Refactor BaseParser and subclass parsers #25

Workflow file for this run

name: PyPI publish
on:
push:
branches:
- main
release: # This will publish on every release
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry==1.8.2
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Publish to PyPI
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build --no-interaction && echo "published=1" >> "$GITHUB_ENV" || echo "published=0" >> "$GITHUB_ENV"