From ce72b13cb654034db731390ab707bde830743acf Mon Sep 17 00:00:00 2001 From: parsa aghaei Date: Sun, 9 Aug 2026 22:14:54 +0330 Subject: [PATCH] deploy.yml updated --- .gitea/workflows/deploy.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d02b172..278f4e2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -14,7 +14,21 @@ jobs: env: BRANCH: ${{ github.ref_name }} run: | - # ✅ آدرس اصلاح شده برای Gitea - wget --no-check-certificate -O deploy.sh https://87.248.133.138/parsa/canina/raw/main/deploy.sh + echo "Attempting to download deploy.sh from root directory..." + + # تلاش اول: آدرس استاندارد Gitea برای فایل خام در روت + wget --no-check-certificate -O deploy.sh https://87.248.133.138/parsa/canina/raw/main/deploy.sh || \ + wget --no-check-certificate -O deploy.sh https://87.248.133.138/parsa/canina/raw/develop/deploy.sh || \ + wget --no-check-certificate -O deploy.sh https://87.248.133.138/parsa/canina/raw/branch/main/deploy.sh || \ + wget --no-check-certificate -O deploy.sh https://87.248.133.138/parsa/canina/raw/branch/develop/deploy.sh + + # اگر فایل با هیچکدام دانلود نشد، خطا بده + if [ ! -f "deploy.sh" ]; then + echo "❌ deploy.sh not found in any of the attempted URLs!" + echo "Please check the exact URL of the raw file in your Gitea web interface." + echo "Go to your repo -> click on deploy.sh -> click 'Raw' button -> copy the URL." + exit 1 + fi + chmod +x deploy.sh ./deploy.sh ${BRANCH} \ No newline at end of file