From 4e64d73ce61c25ba887329ed1b1f0cfc12385ec1 Mon Sep 17 00:00:00 2001 From: Vasilii Mikhailovskii Date: Thu, 7 Nov 2024 14:05:21 +0200 Subject: [PATCH] add ${{env.GITHUB_SHA}} to build folder --- .gitea/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index bd9604f..638ed7c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -21,5 +21,5 @@ jobs: - name: Clean install dependencies and build run: | npm ci - npm run build-only -- --outDir /www/hereconnect.condev.ru/build - mv /www/hereconnect.condev.ru/current /www/hereconnect.condev.ru/old && mv /www/hereconnect.condev.ru/build /www/hereconnect.condev.ru/current && rm -rf /www/hereconnect.condev.ru/old + npm run build-only -- --emptyOutDir --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}} + mv /www/hereconnect.condev.ru/current /www/hereconnect.condev.ru/old && mv /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}} /www/hereconnect.condev.ru/current && rm -rf /www/hereconnect.condev.ru/old