This commit is contained in:
parent
da0d26e212
commit
ce4db4f656
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user