From 7d3b9e68dffce1a48018053338853ba2ae7f15d1 Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 5 Jul 2024 14:40:25 +0200 Subject: [PATCH] Added cicd --- .woodpecker.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..84d01e2 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,23 @@ +steps: + - name: "Create a virtual environment" + image: python:3 + commands: + - pip install -r ./requirements.txt -t ./lib + when: + - event: tag + - name: "Build a zip" + image: alpine + commands: + - apk add zip + - zip -r Flow.Launcher.Plugin.OSRSSearch-${CI_COMMIT_TAG}.zip . -x '*.zip' + when: + - event: tag + - name: "Create release" + image: woodpeckerci/plugin-release + settings: + files: + - Flow.Launcher.Plugin.OSRSSearch-${CI_COMMIT_TAG}.zip + api_key: + from_secret: ACCESS_TOKEN + when: + - event: tag \ No newline at end of file