This commit is contained in:
parent
da0d26e212
commit
ce4db4f656
@ -10,19 +10,14 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: canina
|
runs-on: canina
|
||||||
steps:
|
steps:
|
||||||
# 1. برو به روت رانر و پروژه رو کلون کن
|
- name: Clone repository in root and set permission
|
||||||
- name: Clone repository in runner root
|
|
||||||
run: |
|
run: |
|
||||||
cd /
|
cd /
|
||||||
|
rm -rf canina
|
||||||
git clone https://git.parsaaghayi.ir/parsa/canina.git
|
git clone https://git.parsaaghayi.ir/parsa/canina.git
|
||||||
|
cd canina
|
||||||
# 2. برو داخل پوشهی پروژه و دسترسی بده
|
|
||||||
- name: Enter project and set permission
|
|
||||||
run: |
|
|
||||||
cd /canina
|
|
||||||
chmod +x deploy.sh
|
chmod +x deploy.sh
|
||||||
|
|
||||||
# 3. اسکریپت رو اجرا کن
|
|
||||||
- name: Run Deployment Script
|
- name: Run Deployment Script
|
||||||
env:
|
env:
|
||||||
BRANCH: ${{ github.ref_name }}
|
BRANCH: ${{ github.ref_name }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user