Skip to content

2024.12.9

2024.12.9 #53

Workflow file for this run

# SPDX-License-Identifier: MIT
name: Production Build & Release
on:
workflow_dispatch:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Setup Python
run: uv python install 3.9
- name: Install project & build
run: uv sync --all-extras && uv build
- name: Publish package
run: uv publish --token ${{ secrets.PYPI_TOKEN }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true