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
Raw Normal View History

2021-02-20 01:47:36 +01:00
kind: pipeline
type: docker
2021-02-20 01:48:04 +01:00
name: Shapez.io
2021-02-20 01:47:36 +01:00
steps:
- name: linux
2021-02-20 01:34:46 +01:00
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
2021-02-20 02:11:36 +01:00
- yarn upgrade
2021-02-20 01:34:46 +01:00
- 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
2021-02-20 01:40:34 +01:00
2021-02-20 01:34:46 +01:00
trigger:
event:
- pull_request
- tag