From 10c82b687db2a618d27a52df26769c43ced2f751 Mon Sep 17 00:00:00 2001 From: Michael Yick Date: Wed, 12 Feb 2025 18:26:32 -0600 Subject: [PATCH] add woodpecker for auto-building + releases --- .woodpecker.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000000..046570a92d --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,30 @@ +clone: + git: + image: woodpeckerci/plugin-git + settings: + depth: 1 + +steps: + build: + image: node:current-bookworm-slim + commands: + - apt update + - apt install php php-symfony bash -y + - npm install pnpm + - cd mailpoet + - bash build.sh + - mkdir ../output + - mv mailpoet.zip ../output + - cd .. + + release: + image: woodpeckerci/plugin-gitea-release:latest + settings: + base_url: https://git.cavemanon.xyz + api_key: + from_secret: releasesmithapikey + files: "output/" + prerelease: false + title: "${CI_COMMIT_TAG}" + when: + - event: tag