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 }}