Skip to content

Add GitHub runner groups and org/repo runner collection (#5) #3

Add GitHub runner groups and org/repo runner collection (#5)

Add GitHub runner groups and org/repo runner collection (#5) #3

Workflow file for this run

name: Build and Publish
on:
push:
tags:
- "v*"
workflow_call:
inputs:
tag:
description: "Tag to build and publish"
required: true
type: string
permissions:
contents: read
id-token: write
jobs:
build:
environment: pypi
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.tag && format('refs/tags/{0}', inputs.tag) || github.ref }} # using input tags or github ref if tags are manually pushed
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Create virtual environment
run: uv venv .venv
- name: Build package
run: uv build
- name: Publish package
run: uv publish