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 pypi_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 python3 venv run: apt install -y python3.13-venv - name: Install local venv run: uv venv - name: Install python run: uv python install - 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: source .venv/bin/activate && python -m build - name: Publish package run: source .venv/bin/activate && python -m twine upload --repository repo ./dist/*