Files
puzzle-quest/releases/.drone.yml
T
2021-08-01 13:37:31 +02:00

148 lines
2.6 KiB
YAML

---
# Windows Development version
kind: pipeline
type: docker
name: WindowsDebugVersion
platform:
os: linux
arch: amd64
environment:
EXPORT_NAME: "Puzzle Quest"
clone:
depth: 1
steps:
- name: WindowsDebug
image: barichello/godot-ci:3.3.2
volumes:
- name: binary
path: release/windows
commands:
- godot --export "WindowsDebug" "releases/windows/${EXPORT_NAME}.exe"
- name: WindowsDeploy
image: barichello/godot-ci:3.3.2
volumes:
- name: binary
path: release/windows
environment:
BUTLER_API_KEY:
from_secret: BUTLER_API_KEY
commands:
- butler push "releases/windows" "dev-crea/ahog:windows"
trigger:
branch:
- dev
---
# Android Development version
kind: pipeline
type: docker
name: AndroidDebugVersion
platform:
os: linux
arch: amd64
environment:
EXPORT_NAME: "Puzzle Quest"
clone:
depth: 1
steps:
- name: AndroidDebug
image: barichello/godot-ci:3.3.2
volumes:
- name: binary
path: release/android
commands:
- apt-get update
- apt-get install -y wget
- wget -O /root/debug.keystore https://u.pcloud.link/publink/show?code=XZD8dxXZSdXUyze6UHXxhssGJXHfUBI730Gk
- sed 's@keystore/debug=".*"@keystore/debug="'/root/debug.keystore'"@g' -i export_presets.cfg
# - sed 's@keystore/release_user=".*"@keystore/release_user="'$SECRET_RELEASE_KEYSTORE_USER'"@g' -i export_presets.cfg
# - sed 's@keystore/release_password=".*"@keystore/release_password="'$SECRET_RELEASE_KEYSTORE_PASSWORD'"@g' -i export_presets.cfg
- godot --export "AndroidDebug" "releases/android/${EXPORT_NAME}.apk"
- name: AndroidDeploy
image: barichello/godot-ci:3.3.2
volumes:
- name: binary
path: release/android
environment:
BUTLER_API_KEY:
from_secret: BUTLER_API_KEY
commands:
- butler push "releases/android" "dev-crea/ahog:android"
trigger:
branch:
- dev
---
# Linux Development version
kind: pipeline
type: docker
name: LinuxDebugVersion
platform:
os: linux
arch: amd64
environment:
EXPORT_NAME: "Puzzle Quest"
clone:
depth: 1
steps:
- name: LinuxDebug
image: barichello/godot-ci:3.3.2
volumes:
- name: binary
path: release/linux
commands:
- godot --export "LinuxDebug" "releases/linux/${EXPORT_NAME}.exe"
- name: LinuxDeploy
image: barichello/godot-ci:3.3.2
volumes:
- name: binary
path: release/linux
environment:
BUTLER_API_KEY:
from_secret: BUTLER_API_KEY
commands:
- butler push "releases/linux" "dev-crea/ahog:linux"
trigger:
branch:
- dev
---
# For Production version
kind: pipeline
type: docker
name: ReleaseVersion
platform:
os: linux
arch: amd64
environment:
EXPORT_NAME: "Puzzle Quest"
clone:
depth: 1
trigger:
branch:
- master