Skip to content

bump: version 0.2.4 → 0.2.5 #9

bump: version 0.2.4 → 0.2.5

bump: version 0.2.4 → 0.2.5 #9

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*'
jobs:
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up Poetry
uses: abatilo/actions-poetry@v4.0.0
with:
poetry-version: '1.8.3'
- name: Install dependencies
run: poetry install --no-root
- name: Build package
run: poetry build
- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish --username __token__ --password "$POETRY_PYPI_TOKEN_PYPI"
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
body_path: CHANGELOG.md
draft: false
prerelease: false