1 parent
10383c96fd
commit
306c80e362
1 file changed
+6
-7
@@ -10,12 +10,11 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: canina
|
runs-on: canina
|
||||||
steps:
|
steps:
|
||||||
- name: Just run deploy.sh (it will clone itself)
|
- name: Download and run deploy.sh
|
||||||
run: |
|
|
||||||
# فایل deploy.sh را از آدرس اصلی دانلود میکنیم تا اجرا شود
|
|
||||||
curl -k -o deploy.sh https://87.248.133.138/parsa/canina/raw/branch/main/deploy.sh
|
|
||||||
chmod +x deploy.sh
|
|
||||||
./deploy.sh ${BRANCH}
|
|
||||||
env:
|
env:
|
||||||
BRANCH: ${{ github.ref_name }}
|
BRANCH: ${{ github.ref_name }}
|
||||||
|
run: |
|
||||||
|
# دانلود فایل deploy.sh با wget (بدون نیاز به curl)
|
||||||
|
wget --no-check-certificate -O deploy.sh https://87.248.133.138/parsa/canina/raw/branch/main/deploy.sh
|
||||||
|
chmod +x deploy.sh
|
||||||
|
./deploy.sh ${BRANCH}
|
||||||
Reference in new issue
Block a user