mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 09:16:56 +01:00
woodpecker files
This commit is contained in:
parent
0a73b042bf
commit
ef09c6253a
2 changed files with 79 additions and 1 deletions
78
.woodpecker.yml
Normal file
78
.woodpecker.yml
Normal file
|
@ -0,0 +1,78 @@
|
|||
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
|
||||
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
|
||||
when:
|
||||
- event: cron
|
||||
|
||||
build:
|
||||
image: openjdk:8
|
||||
commands:
|
||||
- apt update
|
||||
- apt install libgl1 -y
|
||||
- sed -i -e "s/VERSION/${RenpyVersion}/g" game/options.rpy #Change the renpy version to the woodpecker reuqested one.
|
||||
#Get Renkit
|
||||
- wget -qO- "https://github.com/kobaltcore/renkit/releases/download/v${RenkitVersion}/renkit-linux-amd64.tar.gz" | tar xz --directory=/tmp/
|
||||
- /tmp/renconstruct build -i "." -c "renconstruct.toml" -o dist/
|
||||
- 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:
|
||||
- "8.1.3"
|
||||
RenkitVersion:
|
||||
- "3.3.1"
|
|
@ -24,7 +24,7 @@ define gui.show_name = True
|
|||
|
||||
## The version of the game.
|
||||
|
||||
define config.version = _("Patch9_RoastedLaika")
|
||||
define config.version = _("INTERNAL-BUILD")
|
||||
|
||||
## Text that is placed on the game's about screen. Place the text between the
|
||||
## triple-quotes, and leave a blank line between paragraphs.
|
||||
|
|
Loading…
Reference in a new issue