From 81962fe6cb2edc6fa6d0876cf641866c57837f22 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 7 Sep 2026 18:37:55 -0400 Subject: [PATCH] Adding Woodpecker CI config --- .woodpecker.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..ee9ebb1 --- /dev/null +++ b/.woodpecker.yml @@ -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