Post-1.4 Release CI Fixes
parent
beb768aced
commit
5adcc27c72
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"type": "MOD",
|
"type": "TXP",
|
||||||
"title": "RPG16",
|
"title": "RPG16",
|
||||||
SHORT_DESCRIPTION
|
SHORT_DESCRIPTION
|
||||||
"tags": [ "16px" ],
|
"tags": [ "16px" ],
|
||||||
"media_license": "CC BY-SA 4.0",
|
"media_license": "CC-BY-SA-4.0",
|
||||||
"repo": "https://gitlab.com/Df458/rpg16",
|
"repo": "https://gitlab.com/Df458/rpg16",
|
||||||
"website": "https://www.huguesross.net",
|
"website": "https://www.huguesross.net",
|
||||||
"issue_tracker": "https://gitlab.com/Df458/rpg16/issues",
|
"issue_tracker": "https://gitlab.com/Df458/rpg16/issues",
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- optimize
|
||||||
- package
|
- package
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
@ -17,6 +18,19 @@ build-textures:
|
||||||
paths:
|
paths:
|
||||||
- "rpg16/"
|
- "rpg16/"
|
||||||
|
|
||||||
|
optimize:
|
||||||
|
stage: optimize
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
script:
|
||||||
|
- "find ${EXPORT_DIR} -name '*.png' | xargs optipng -o5 -fix"
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- "rpg16/"
|
||||||
|
dependencies:
|
||||||
|
- build-textures
|
||||||
|
|
||||||
stamp:
|
stamp:
|
||||||
stage: package
|
stage: package
|
||||||
only:
|
only:
|
||||||
|
@ -28,17 +42,4 @@ stamp:
|
||||||
paths:
|
paths:
|
||||||
- "rpg16/"
|
- "rpg16/"
|
||||||
dependencies:
|
dependencies:
|
||||||
- build-textures
|
- optimize
|
||||||
|
|
||||||
optimize:
|
|
||||||
stage: package
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
script:
|
|
||||||
- "find ${EXPORT_DIR} -name '*.png' | xargs optipng -o5 -fix"
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "rpg16/"
|
|
||||||
dependencies:
|
|
||||||
- build-textures
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ BEGIN {
|
||||||
}
|
}
|
||||||
|
|
||||||
/^SHORT_DESCRIPTION/ {
|
/^SHORT_DESCRIPTION/ {
|
||||||
print " \"short_description\": \"" short_description "\"";
|
print " \"short_description\": \"" short_description "\",";
|
||||||
}
|
}
|
||||||
|
|
||||||
/^LONG_DESCRIPTION/ {
|
/^LONG_DESCRIPTION/ {
|
||||||
|
|
3
stamp.sh
3
stamp.sh
|
@ -20,9 +20,6 @@ convert "${EXPORT_DIR}/screenshot.png" \
|
||||||
-gravity southeast -fill "#b9b5c5" -font "DejaVu-Serif" -annotate 0 "${1}"\
|
-gravity southeast -fill "#b9b5c5" -font "DejaVu-Serif" -annotate 0 "${1}"\
|
||||||
"${EXPORT_DIR}/screenshot.png" || { echo "Failed to stamp versioning info onto ${EXPORT_DIR}/screenshot.png"; exit 1; }
|
"${EXPORT_DIR}/screenshot.png" || { echo "Failed to stamp versioning info onto ${EXPORT_DIR}/screenshot.png"; exit 1; }
|
||||||
|
|
||||||
# Stamp the provided version number into the texture_pack.conf
|
|
||||||
echo "release = ${1}" >> "${EXPORT_DIR}/texture_pack.conf"
|
|
||||||
|
|
||||||
# Generate an escaped long description for .cdb.json
|
# Generate an escaped long description for .cdb.json
|
||||||
export SHORT_DESCRIPTION=`awk -f "short_description.awk" "README.md"`
|
export SHORT_DESCRIPTION=`awk -f "short_description.awk" "README.md"`
|
||||||
export LONG_DESCRIPTION=`awk -f "long_description.awk" "README.md"`
|
export LONG_DESCRIPTION=`awk -f "long_description.awk" "README.md"`
|
||||||
|
|
Loading…
Reference in New Issue