This commit is contained in:
parent
f6860f8007
commit
08bb6e2d4e
@ -10,27 +10,11 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: canina
|
runs-on: canina
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository from IP directly
|
- name: Just run deploy.sh (it will clone itself)
|
||||||
run: |
|
run: |
|
||||||
cd /
|
# فایل deploy.sh را از آدرس اصلی دانلود میکنیم تا اجرا شود
|
||||||
rm -rf canina
|
curl -k -o deploy.sh https://87.248.133.138/parsa/canina/raw/branch/main/deploy.sh
|
||||||
git -c http.sslVerify=false clone https://87.248.133.138/parsa/canina.git
|
chmod +x deploy.sh
|
||||||
cd canina
|
./deploy.sh ${BRANCH}
|
||||||
|
|
||||||
echo "=== لیست فایلها ==="
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
if [ -f "deploy.sh" ]; then
|
|
||||||
chmod +x deploy.sh
|
|
||||||
else
|
|
||||||
echo "⚠️ فایل deploy.sh پیدا نشد!"
|
|
||||||
ls -la | grep -i deploy
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run Deployment Script
|
|
||||||
env:
|
env:
|
||||||
BRANCH: ${{ github.ref_name }}
|
BRANCH: ${{ github.ref_name }}
|
||||||
run: |
|
|
||||||
cd /canina
|
|
||||||
./deploy.sh ${BRANCH}
|
|
||||||
Loading…
Reference in New Issue
Block a user