Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,24 @@ jobs:
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 }}
cache: pip
- name: Build Wheel
run: |
set -x
pip install --upgrade pip
pip install -U 'pdm>=2.20.0' twine torch==2.3.0 setuptools
pdm build -vv
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'
python3 -m twine upload dist/*.whl
uvx twine upload dist/*.whl

build_windows:
name: Build and Push (Windows - Python ${{ matrix.python-version }})
Expand All @@ -50,22 +49,20 @@ jobs:
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 }}
cache: pip
- name: Build Wheel
run: |
$env:PATH="$env:APPDATA\Python\Library\Bin;$env:PATH"
pip install --upgrade pip
pip install -U 'pdm>=2.20.0' twine torch==2.1.2 setuptools
pdm build -vv
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"
python3 -m twine upload dist/*.whl
uvx twine upload dist/*.whl