2024-08-26 02:43:52 +02:00
clone :
git :
image : woodpeckerci/plugin-git
settings :
depth : 1
2024-03-01 14:54:03 +01:00
steps :
changelog :
image : debian
commands :
- apt update
- apt install git -y
- mkdir dist
- git log --oneline --decorate --since="7.days" --pretty="## %s%n%an%n%aD%n%b" > dist/README.md || echo "Could not write changelog!" >> dist/README.md #Get that changelog
version-tag :
image : debian
commands :
- sed -i -e "s/INTERNAL-BUILD/${CI_COMMIT_TAG}/g" game/options.rpy #Change the internal build name to the tagged version
2024-08-25 00:40:26 +02:00
- sed -i -e "s/INTERNAL-BUILD/${CI_COMMIT_TAG}/g" android.json
2024-03-01 14:54:03 +01:00
when :
- event : tag
version-cron :
image : debian
commands :
- sed -i -e "s/INTERNAL-BUILD/${CI_COMMIT_SHA}/g" game/options.rpy #if no tag, make it the commit num
2024-08-26 21:06:35 +02:00
- sed -i -e "s/INTERNAL-BUILD/${CI_COMMIT_SHA}/g" android.json
2024-03-01 14:54:03 +01:00
when :
- event : cron
build :
2024-08-23 23:48:39 +02:00
image : openjdk:21-jdk-bookworm
2024-03-01 14:54:03 +01:00
commands :
- apt update
2024-08-26 02:12:17 +02:00
- apt install libgl1 patch -y
2024-03-01 14:54:03 +01:00
- sed -i -e "s/VERSION/${RenpyVersion}/g" game/options.rpy #Change the renpy version to the woodpecker reuqested one.
#Get Renkit
2024-08-24 02:03:16 +02:00
- wget -qO- "https://github.com/kobaltcore/renkit/releases/download/v${RenkitVersion}/renkit-x86_64-unknown-linux-gnu.tar.xz" | tar -Jax --directory=/tmp/
2024-08-26 02:12:17 +02:00
- /tmp/renkit-x86_64-unknown-linux-gnu/renconstruct build "." dist/
2024-08-26 21:28:30 +02:00
- mkdir "dist/android"
- mv dist/*.apk "dist/android"
2024-03-01 14:54:03 +01:00
- cd /tmp/
archival-sha :
image : debian
commands :
- apt update
- apt install curl bash -y
- curl https://git.cavemanon.xyz/Cavemanon/Woodpecker-Webdav/raw/branch/master/push.sh > /tmp/push.sh ## I'd use a proper docker container, but dockerhub is owned by the CIA and I refuse to deal with that (also I don't care to maintain it or set it up). #TODO : merge this script as apart of the file so we don't make unnecessary network requests every time we build.
- chmod +x /tmp/push.sh
- PLUGIN_USERNAME=$RELEASESMITHNEXTCLOUDUSERNAME PLUGIN_PASSWORD=$RELEASESMITHNEXTCLOUDPASSWORD PLUGIN_DESTINATION=https://cloud.dev.cavemanon.xyz/remote.php/dav/files/ReleaseSmith/Snoot%20Game/Internal%20Builds/nightly-${CI_COMMIT_SHA}/ PLUGIN_MAKE_FOLDER_AT=https://cloud.dev.cavemanon.xyz/remote.php/dav/files/ReleaseSmith/Snoot%20Game/Internal%20Builds/nightly-${CI_COMMIT_SHA}/ PLUGIN_FILE_GLOB=dist/* /tmp/push.sh #sovl
- rm -rf "dist"
secrets : [ releasesmithnextcloudusername, releasesmithnextcloudpassword ]
when :
- event : cron
cron : "nightly"
archival-tag :
image : debian
commands :
- apt update
- apt install curl bash -y
- curl https://git.cavemanon.xyz/Cavemanon/Woodpecker-Webdav/raw/branch/master/push.sh > /tmp/push.sh ## I'd use a proper docker container, but dockerhub is owned by the CIA and I refuse to deal with that (also I don't care to maintain it or set it up). #TODO : merge this script as apart of the file so we don't make unnecessary network requests every time we build.
- chmod +x /tmp/push.sh
- PLUGIN_USERNAME=$RELEASESMITHNEXTCLOUDUSERNAME PLUGIN_PASSWORD=$RELEASESMITHNEXTCLOUDPASSWORD PLUGIN_DESTINATION=https://cloud.dev.cavemanon.xyz/remote.php/dav/files/ReleaseSmith/Snoot%20Game/Internal%20Builds/release-${CI_COMMIT_TAG}/ PLUGIN_MAKE_FOLDER_AT=https://cloud.dev.cavemanon.xyz/remote.php/dav/files/ReleaseSmith/Snoot%20Game/Internal%20Builds/release-${CI_COMMIT_TAG}/ PLUGIN_FILE_GLOB=dist/* /tmp/push.sh #sovl
- rm -rf "dist"
secrets : [ releasesmithnextcloudusername, releasesmithnextcloudpassword ]
when :
- event : tag
release :
image : woodpeckerci/plugin-gitea-release:latest
settings :
base_url : https://git.cavemanon.xyz
api_key :
from_secret : releasesmithapikey
files : "*-dists/*"
prerelease : true
title : "${CI_COMMIT_TAG}"
when :
- event : tag
matrix :
RenpyVersion :
2024-12-04 02:09:51 +01:00
- "8.3.3"
2024-03-01 14:54:03 +01:00
RenkitVersion :
2024-08-26 22:14:34 +02:00
- "4.4.0"