Fix deploy
All checks were successful
/ deploy (push) Successful in -2040h37m57s

This commit is contained in:
Jonatan Nilsson 2024-02-20 05:15:36 +00:00
parent 8ebae25945
commit 777ad5ac80

View file

@ -16,8 +16,6 @@ jobs:
echo "" echo ""
echo "------------------------------------" echo "------------------------------------"
echo "" echo ""
echo "checking $f";
cd $f
CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)" CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)"
CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)" CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)"
@ -26,8 +24,7 @@ jobs:
if curl -s -X GET -H "Authorization: token ${{ secrets.deploytoken }}" https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then if curl -s -X GET -H "Authorization: token ${{ secrets.deploytoken }}" https://git.nfp.is/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then
echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists";
cd .. exit;
continue;
fi fi
echo "New release ${CURR_VER} found, running npm install..." echo "New release ${CURR_VER} found, running npm install..."
@ -39,7 +36,7 @@ jobs:
mv package.json build-package.json mv package.json build-package.json
mv fuck-you-npm-package.json package.json mv fuck-you-npm-package.json package.json
../7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api public ./7zas a -xr!*.xcf -mx9 "${CURR_VER}_build-sc.7z" package.json index.mjs api public
echo "Creating ${CURR_VER} release on gitea" echo "Creating ${CURR_VER} release on gitea"
RELEASE_RESULT=$(curl \ RELEASE_RESULT=$(curl \