From e466d2677bd89c5be43f19e3587a3ae7fd8975c9 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 20 Feb 2021 01:34:46 +0100 Subject: [PATCH] added drone file --- .drone.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..9a579d4c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,46 @@ +kind: pipeline type: docker name: Shapez.io steps: - name: linux + pull: if-not-exists + image: node:12 + commands: + - apt update + - apt upgrade -y + - apt install -y libavformat-dev libavfilter-dev libavdevice-dev ffmpeg openjdk-8-jre zip + #- npm install -g yarn + - yarn + - cd electron + - yarn + - cd .. + - cd gulp + - yarn + - yarn gulp build.standalone-prod + - yarn gulp standalone.prepare + - yarn gulp standalone.package.prod.linux64 + - yarn gulp standalone.package.prod.linux32 + - cd .. + - cd tmp_standalone_files/shapez.io-standalone-linux-x64 + - zip -r ../build.x64.zip * + - cd .. + - cd shapez.io-standalone-linux-ia32 + - zip -r ../build.x32.zip * + - cd ../../ + +- name: gitea_release + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea-key + base_url: https://gitea.em-ingee.ovh + files: + - tmp_standalone_files/build.x64.zip + - tmp_standalone_files/build.x32.zip + checksum: + - md5 + - sha1 + - sha256 + when: + event: tag + +trigger: + event: + - pull_request + - tag