diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index e6f2ae6..aa86c87 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -16,8 +16,6 @@ jobs: echo "" echo "------------------------------------" echo "" - echo "checking $f"; - cd $f 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)" @@ -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 echo "Skipping ${{ gitea.job }} since $CURR_NAME already exists"; - cd .. - continue; + exit; fi echo "New release ${CURR_VER} found, running npm install..." @@ -39,7 +36,7 @@ jobs: mv package.json build-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" RELEASE_RESULT=$(curl \