Skip to content

bump version 1.1.1 -> 1.2.0 #20

bump version 1.1.1 -> 1.2.0

bump version 1.1.1 -> 1.2.0 #20

Workflow file for this run

name: Publish package to PyPI
on:
push:
tags:
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+[a-c][0-9]+'
- '[0-9]+.[0-9]+.[0-9]+alpha[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+beta[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
jobs:
build_and_publish:
runs-on: ubuntu-22.04
environment: pypi
steps:
- name: Check that PYPI_TOKEN secret exists
env:
CURRENT_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN}}
if: ${{ env.CURRENT_PYPI_TOKEN == '' }}
run: echo "Secret PYPI_TOKEN is not defined." && exit 1
- name: Checkout repository
uses: actions/checkout@v4
- name: "Set up Python 3.10"
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: "Install poetry 1.8.2"
run: curl -sSL https://install.python-poetry.org | python3 - --version 1.8.2
- name: Build package
run: poetry build
- name: Publish package to PyPI
run: poetry publish --username "__token__" --password ${{ secrets.PYPI_TOKEN}}