From c35c88244f155952c2b1bb27cdac47ef34ca1cb0 Mon Sep 17 00:00:00 2001 From: Elara6331 Date: Wed, 13 Nov 2024 19:01:01 -0800 Subject: [PATCH] Add CI pipeline --- .woodpecker.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..99f3540 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,38 @@ +labels: + platform: linux/amd64 + +clone: + git: + image: woodpeckerci/plugin-git + settings: + tags: true + +steps: + build: + image: python + commands: + - python -m pip install hatchling hatch-vcs build + - python -m build + when: + event: tag + + publish: + image: gitea.elara.ws/music-kraken/plugin-twine + settings: + username: __token__ + password: + from_secret: pypi_token + when: + event: tag + + release: + image: woodpeckerci/plugin-release + settings: + title: "Version ${CI_COMMIT_TAG}" + files: + - 'dist/hisscl-*.whl' + - 'dist/hisscl-*.tar.gz' + api_key: + from_secret: gitea_token + when: + event: tag \ No newline at end of file