This repository has been archived on 2021-02-20. You can view files and clone it, but cannot push or open issues or pull requests.
shapez.io/.drone.yml

53 lines
1.1 KiB
YAML

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