Skip to content

Bumping version to 1.2.1 to trigger PyPi github action. #4

Bumping version to 1.2.1 to trigger PyPi github action.

Bumping version to 1.2.1 to trigger PyPi github action. #4

Workflow file for this run

name: Publish Python Package
on:
push:
tags:
- 'v*.*.*'
jobs:
publish:
if: github.repository_owner == 'MitchMedeiros' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
name: Upload release to PyPI
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch twine
- name: Build package
run: hatch build
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload dist/*