Compare commits
No commits in common. "1.0.0" and "main" have entirely different histories.
|
|
@ -65,5 +65,5 @@
|
||||||
],
|
],
|
||||||
"url": "https://git.pains-perdus.fr/histausse/the_beguiler_module",
|
"url": "https://git.pains-perdus.fr/histausse/the_beguiler_module",
|
||||||
"manifest": "https://git.pains-perdus.fr/histausse/the_beguiler_module/raw/branch/main/module.json",
|
"manifest": "https://git.pains-perdus.fr/histausse/the_beguiler_module/raw/branch/main/module.json",
|
||||||
"download": ""
|
"download": "https://git.pains-perdus.fr/api/packages/histausse/generic/the_beguiler_module/1.0.0/the_beguiler_module.zip"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
VERSION=`cat module.json | jq -r '.version'`
|
VERSION=`cat module.json | jq -r '.version'`
|
||||||
TMP_DIR=`mktemp -d`
|
TMP_DIR=`mktemp -d`
|
||||||
|
GITEA_TOKEN=`secret-tool lookup Title 'Gitea Token'`
|
||||||
FOLDER="${TMP_DIR}/the_beguiler_module_${VERSION}"
|
FOLDER="${TMP_DIR}/the_beguiler_module_${VERSION}"
|
||||||
|
|
||||||
sh ./json_to_nedb.sh
|
sh ./json_to_nedb.sh
|
||||||
|
|
@ -10,5 +11,9 @@ cp -r languages README.md module.json modules "${FOLDER}/"
|
||||||
mkdir "${FOLDER}/packs"
|
mkdir "${FOLDER}/packs"
|
||||||
cp packs/*.db "${FOLDER}/packs"
|
cp packs/*.db "${FOLDER}/packs"
|
||||||
|
|
||||||
zip -r "the_beguiler_module_${VERSION}.zip" "${FOLDER}"
|
zip -r "${TMP_DIR}/the_beguiler_module.zip" "${FOLDER}"
|
||||||
|
curl --user "histausse:${GITEA_TOKEN}" \
|
||||||
|
--upload-file "${TMP_DIR}/the_beguiler_module.zip" \
|
||||||
|
"https://git.pains-perdus.fr/api/packages/histausse/generic/the_beguiler_module/${VERSION}/the_beguiler_module.zip"
|
||||||
|
|
||||||
rm -rf "${TMP_DIR}"
|
rm -rf "${TMP_DIR}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue