Skip to content

Refactor: rename Value column to Default Value in config output #27

Refactor: rename Value column to Default Value in config output

Refactor: rename Value column to Default Value in config output #27

Workflow file for this run

name: Deploy to PyPI
on:
push:
tags:
- "v*"
jobs:
deploy_pypi:
name: Deploy to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Extract version
id: get_version
run: |
VERSION="${{ github.ref_name }}"
VERSION=$(echo "$VERSION" | sed 's/^v//')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Deploying version: $VERSION"
- name: Update version in pyproject.toml
run: |
VERSION="${{ steps.get_version.outputs.version }}"
sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install build twine
- name: Build package
run: python -m build
- name: Check distribution
run: twine check dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*