Updating woodpecker config for releases
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-09-06 01:02:34 -04:00
parent d42556c6c5
commit 4513826eac
+24 -3
View File
@@ -1,13 +1,34 @@
when: when:
event: [push, pull_request] event: [push, tag, pull_request]
steps: steps:
lint: lint:
image: python:3.12-alpine image: python:3.12-alpine
commands: commands:
# Install Ruff (extremely fast linter) # Install Ruff for linting
- pip install --no-cache-dir ruff - pip install --no-cache-dir ruff
# Check syntax and undefined names/variables across your Python files # Check syntax and undefined names/variables across your Python files
- ruff check . - ruff check .
# Optional: Check formatting compliance # Check formatting compliance
- ruff format --check . - 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-weather-${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-weather-*.tar.gz
when:
event: tag