Skip to content

Merge pull request #6 from EliahKagan/compat #5

Merge pull request #6 from EliahKagan/compat

Merge pull request #6 from EliahKagan/compat #5

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- main
paths:
- pyproject.toml
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- run: curl -sSL https://install.python-poetry.org | python3 -
- run: poetry install
- run: poetry publish --build
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
- run: gh release create $(poetry version | cut -d ' ' -f 2) --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}