From a343813b0fdf96e315c3570c479515f49c12a6eb Mon Sep 17 00:00:00 2001 From: Dhaverd Date: Fri, 28 Mar 2025 09:26:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.gitea/workflows/action.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/action.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml index a798ff9..5982455 100644 --- a/.gitea/workflows/action.yaml +++ b/.gitea/workflows/action.yaml @@ -2,6 +2,9 @@ name: Deploy Wishlist on: push: branches: [ master ] + +env: + DEPLOY_DIR: ${{ secrets.DEPLOY_DIR }} jobs: deploy: @@ -29,25 +32,10 @@ jobs: - name: Build assets run: npm run build - #- name: Prepare deployment directory - # run: | - # sudo chown -R $USER:$USER $DEPLOY_DIR - # sudo chmod -R 775 $DEPLOY_DIR - - name: Copy files to deployment directory run: | sudo rsync -av ./ ${DEPLOY_DIR}/ - #- name: Run migrations - # run: php artisan migrate --force - - #- name: Clear cache - # run: | - # php artisan cache:clear - # php artisan view:clear - # php artisan route:clear - # php artisan config:clear - - name: Restart PHP service run: sudo systemctl restart php8.2-fpm