Adding Woodpecker CI config
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-09-07 18:37:55 -04:00
parent aa8ebce904
commit 81962fe6cb
+34
View File
@@ -0,0 +1,34 @@
when:
event: [push, tag, pull_request]
steps:
lint:
image: python:3.12-alpine
commands:
# Install Ruff for linting
- pip install --no-cache-dir ruff
# Check syntax and undefined names/variables across your Python files
- ruff check .
# Check formatting compliance
- ruff format --check .
package:
image: alpine:latest
commands:
- mkdir -p dist
# Tar up Python files and example configs into a versioned archive
- tar -czf dist/pico-time-${CI_COMMIT_TAG:-dev}.tar.gz *.py pyproject.toml README.md
when:
event: tag
gitea_release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_api_key
base_url: https://git.metaunix.net
title: "${CI_COMMIT_TAG}"
files:
- dist/pico-time-*.tar.gz
when:
event: tag