Skip to content

chore: bump to 0.1.2 #6

chore: bump to 0.1.2

chore: bump to 0.1.2 #6

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Build package
run: python3 -m build
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
if-no-files-found: error
pypi-publish:
name: Upload release to PyPI
needs: [ "build" ]
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1