added drone file

This commit is contained in:
root 2021-02-20 01:34:46 +01:00
parent 14d09a7d52
commit e466d2677b
1 changed files with 46 additions and 0 deletions

46
.drone.yml Normal file
View File

@ -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