From 065d8cbeb7649c3425f6411b5b790ce839b44abc Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 21 Apr 2021 21:32:35 +0200 Subject: [PATCH] Add drone config --- .drone.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3d4b6d5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,40 @@ +kind: pipeline +name: build + +trigger: + branch: + - master + event: + - push + +steps: + - name: build + image: node:12 + pull: true + group: build-static + commands: + - yarn --production=false + - yarn build + + - name: static + image: kolaente/zip + pull: true + commands: + - zip -r vikunja-theme.zip archetypes/ layouts/ static/ theme.toml + depends_on: [ build ] + + - name: release + image: plugins/s3:1 + pull: true + settings: + bucket: vikunja-releases + access_key: + from_secret: aws_access_key_id + secret_key: + from_secret: aws_secret_access_key + endpoint: https://s3.fr-par.scw.cloud + region: fr-par + path_style: true + source: vikunja-theme.zip + target: /theme/ + depends_on: [ static ]