Compare commits

...

No commits in common. "main" and "1.0.0" have entirely different histories.
main ... 1.0.0

2 changed files with 2 additions and 7 deletions

View File

@ -65,5 +65,5 @@
],
"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",
"download": "https://git.pains-perdus.fr/api/packages/histausse/generic/the_beguiler_module/1.0.0/the_beguiler_module.zip"
"download": ""
}

View File

@ -2,7 +2,6 @@
VERSION=`cat module.json | jq -r '.version'`
TMP_DIR=`mktemp -d`
GITEA_TOKEN=`secret-tool lookup Title 'Gitea Token'`
FOLDER="${TMP_DIR}/the_beguiler_module_${VERSION}"
sh ./json_to_nedb.sh
@ -11,9 +10,5 @@ cp -r languages README.md module.json modules "${FOLDER}/"
mkdir "${FOLDER}/packs"
cp packs/*.db "${FOLDER}/packs"
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"
zip -r "the_beguiler_module_${VERSION}.zip" "${FOLDER}"
rm -rf "${TMP_DIR}"