Skip to content

feat(ci): Migrating to uv (#14) #108

feat(ci): Migrating to uv (#14)

feat(ci): Migrating to uv (#14) #108

Workflow file for this run

name: Release
on:
push:
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build_linux:
name: Build and Push (Linux - Python ${{ matrix.python-version }})
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
- name: Check out the repo
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build Wheel
run: |
set -x
uv build
- name: Release to PyPI
if: ${{ github.event_name == 'release' }}
run: |
export TWINE_USERNAME=pypi-upload
export TWINE_PASSWORD=${{ secrets.TWINE_PASSWORD }}
export TWINE_REPOSITORY_URL=https://nexus.meshy.ai/repository/pypi/
export TWINE_NON_INTERACTIVE='true'
uvx twine upload dist/*.whl
build_windows:
name: Build and Push (Windows - Python ${{ matrix.python-version }})
runs-on: windows-2022
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build Wheel
run: |
uv build
- name: Release to PyPI
if: ${{ github.event_name == 'release' }}
run: |
$env:TWINE_USERNAME="pypi-upload"
$env:TWINE_PASSWORD="${{ secrets.TWINE_PASSWORD }}"
$env:TWINE_REPOSITORY_URL="https://nexus.meshy.ai/repository/pypi/"
$env:TWINE_NON_INTERACTIVE="true"
uvx twine upload dist/*.whl