From dbbcd4292a9ad8d96a91e2e04803c98510b3b1c6 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 7 Sep 2026 00:18:49 -0400 Subject: [PATCH] Cleaning up copy of config.go --- .woodpecker.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index dba905e..fd9ddba 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,9 +2,10 @@ when: event: - push - pull_request + - tag steps: - - name: test-build + test-build: image: tinygo/tinygo:0.42.0 commands: # Fix dubious ownership issues because you can't disable it with tinygo @@ -18,3 +19,27 @@ steps: # Compile to an ELF/binary to ensure no syntax, link, or driver errors - tinygo build -target=pico2-w -o /dev/null . + + # Clean up the config.go copy + - rm -f config.go + + 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 *.go go.* config.go.example 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