39 lines
848 B
YAML
39 lines
848 B
YAML
when:
|
|
- event: manual
|
|
- event: tag
|
|
|
|
#depends_on:
|
|
#- test
|
|
|
|
steps:
|
|
python_sync:
|
|
image: code.philo.ydns.eu/philorg/uv
|
|
volumes:
|
|
- uv-cache:/uv-cache
|
|
environment:
|
|
UV_CACHE_DIR: /uv-cache
|
|
UV_LINK_MODE: copy
|
|
commands:
|
|
- uv sync
|
|
|
|
python_build:
|
|
image: code.philo.ydns.eu/philorg/uv
|
|
volumes:
|
|
- uv-cache:/uv-cache
|
|
environment:
|
|
UV_CACHE_DIR: /uv-cache
|
|
UV_LINK_MODE: copy
|
|
commands:
|
|
- uv build --wheel
|
|
- uv cache prune --ci
|
|
|
|
python_publish:
|
|
image: code.philo.ydns.eu/philorg/uv
|
|
environment:
|
|
OWNER: K-Net
|
|
REGISTRY_URL: https://code.philo.ydns.eu
|
|
REGISTRY_TOKEN:
|
|
from_secret: registry_token
|
|
commands:
|
|
- uv publish --publish-url $REGISTRY_URL/api/packages/$OWNER/pypi --token $REGISTRY_TOKEN dist/*.whl
|
|
failure: ignore
|