Skip to content

Synnax v0.54.0 (#2177) #277

Synnax v0.54.0 (#2177)

Synnax v0.54.0 (#2177) #277

Workflow file for this run

name: Deploy - Python
on:
push:
branches:
- main
paths:
- .github/workflows/deploy.py.yaml
- alamos/py/**
- x/py/**
- freighter/py/**
- client/py/**
- pyproject.toml
- uv.lock
- uv.toml
workflow_dispatch:
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: client/py/pyproject.toml
- name: Diff Changes
uses: dorny/paths-filter@v4
id: filter
with:
base: ${{ github.ref }}
filters: |
shared: &shared
- .github/workflows/deploy.py.yaml
- pyproject.toml
- uv.lock
- uv.toml
alamos: &alamos
- *shared
- alamos/py/**
x: &x
- *shared
- x/py/**
freighter: &freighter
- *shared
- *alamos
- *x
- freighter/py/**
client:
- *shared
- *freighter
- client/py/**
- name: Publish Alamos
if: steps.filter.outputs.alamos == 'true'
working-directory: alamos/py
run: uv build
- name: Publish X
if: steps.filter.outputs.x == 'true'
working-directory: x/py
run: uv build
- name: Publish Freighter
if: steps.filter.outputs.freighter == 'true'
working-directory: freighter/py
run: uv build
- name: Publish Client
if: steps.filter.outputs.client == 'true'
working-directory: client/py
run: uv build
- name: Publish Code
if:
steps.filter.outputs.alamos == 'true' || steps.filter.outputs.x == 'true' ||
steps.filter.outputs.freighter == 'true' || steps.filter.outputs.client ==
'true'
run: uv publish