Skip to content

Add BMT workflows and update functions to build Buildings module #2809

Add BMT workflows and update functions to build Buildings module

Add BMT workflows and update functions to build Buildings module #2809

Workflow file for this run

name: Build package / publish
on:
pull_request: { branches: [ main ] }
push: { tags: [ "v*" ] }
release: { types: [ published ] }
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish:
environment: { name: publish }
permissions: { id-token: write }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with: { python-version: "3.14" }
- run: uv build
- run: uv publish --trusted-publishing=always
if: >-
github.event_name == 'release' || (
github.event_name == 'push'
&& startsWith(github.ref, 'refs/tags')
)
# Uncomment for testing
# env: { UV_PUBLISH_URL: "https://test.pypi.org/legacy/" }