try to fix ci/cd
Deploy frontend / frontend (push) Successful in 4m58s

This commit is contained in:
2024-12-02 16:44:26 +02:00
parent 2584c1b7a5
commit fdefc6010e
+7 -2
View File
@@ -55,11 +55,16 @@ jobs:
run: mv -v /www/hereconnect.condev.ru/current-prod /www/hereconnect.condev.ru/old-prod && mv -v /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-prod /www/hereconnect.condev.ru/current-prod && rm -rf /www/hereconnect.condev.ru/old-prod
- name: build dev
run: cd build/frontend && npm run build-only -- --emptyOutDir --mode development --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-dev/
run: cd build/frontend && NODE_OPTIONS="--max-old-space-size=4096" npm run build-only -- --emptyOutDir --mode development --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-dev/
- name: deploy dev
run: mv -v /www/hereconnect.condev.ru/current-dev /www/hereconnect.condev.ru/old-dev && mv -v /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}-dev /www/hereconnect.condev.ru/current-dev && rm -rf /www/hereconnect.condev.ru/old-dev
- name: cleanup build directories
if: always()
run: find /www/hereconnect.condev.ru/ -maxdepth 1 -type d -name "build-${{env.GITHUB_SHA}}-*" -print -exec rm -rf {} +
run: |
echo "Found directories:"
find /www/hereconnect.condev.ru/ -maxdepth 1 -type d -name "build-${{env.GITHUB_SHA}}-*"
echo "Deleting directories:"
find /www/hereconnect.condev.ru/ -maxdepth 1 -type d -name "build-${{env.GITHUB_SHA}}-*" -print -exec rm -rf {} +