From ce4db4f6564c357b671e8be278dca4c2cbebd2ef Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Sun, 9 Aug 2026 22:06:35 +0330
Subject: [PATCH] deploy.yml updated
---
.gitea/workflows/deploy.yml | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml
index 787ec1a..407c928 100644
--- a/.gitea/workflows/deploy.yml
+++ b/.gitea/workflows/deploy.yml
@@ -10,19 +10,14 @@ jobs:
deploy:
runs-on: canina
steps:
- # 1. برو به روت رانر و پروژه رو کلون کن
- - name: Clone repository in runner root
+ - name: Clone repository in root and set permission
run: |
cd /
+ rm -rf canina
git clone https://git.parsaaghayi.ir/parsa/canina.git
-
- # 2. برو داخل پوشهی پروژه و دسترسی بده
- - name: Enter project and set permission
- run: |
- cd /canina
+ cd canina
chmod +x deploy.sh
- # 3. اسکریپت رو اجرا کن
- name: Run Deployment Script
env:
BRANCH: ${{ github.ref_name }}