Files
pypi_publish/action.yaml
T
bryce d2dba7a848
Push to main / Reset-Version-Tag (push) Successful in 5s
a
2026-05-14 13:44:41 -06:00

37 lines
941 B
YAML

name: pub-publish
description: "publishes latest version tag to a pypi repository"
author: "Bryce Thorup"
inputs:
pypi_repo_user:
description: Username used for authenticating with pypi repo
required: true
pypi_repo_pass:
description: Password used for authenticating with pypi repo
required: true
pub_repo_domain:
description: Domain for pypi repo
required: true
runs:
using: "composite"
steps:
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
version: "0.11.14"
- name: Install and activate venv
run: uv venv && source .venv/bin/activate
- name: Install build and twine
run: uv pip install build twine
- name: Install PyPI config
run: $GITHUB_ACTION_PATH/install_pypi_config.sh
shell: bash
- name: Build project
run: python -m build
- name: Publish package
run: python -m twine upload --repository repo ./dist/*