Skip to content

Merge pull request #42 from PolymathicAI/pypi_improvements #4

Merge pull request #42 from PolymathicAI/pypi_improvements

Merge pull request #42 from PolymathicAI/pypi_improvements #4

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*' # Triggers on version tags like v1.0.0, v0.1.2, etc.
jobs:
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/polymathic-aion
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for setuptools_scm
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# This action uses OIDC trusted publishing - no API tokens needed!
# Just configure your PyPI project to trust this GitHub repository