Skip to content

Commit e35f888

Browse files
committed
Update action
1 parent bfa45e1 commit e35f888

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/deploy-production.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,27 @@ jobs:
2323
tools: composer:v2
2424
coverage: none
2525

26-
# Step 3: Navigate to the backend and install dependencies
26+
# Step 3: Navigate to the backend and prepare environment
27+
- name: Prepare Laravel Environment
28+
working-directory: ./backend
29+
run: |
30+
mkdir -p bootstrap/cache
31+
chmod -R 775 bootstrap/cache
32+
33+
# Step 4: Install Dependencies
2734
- name: Install Dependencies
2835
working-directory: ./backend
2936
run: composer install --no-dev --no-progress --no-scripts --optimize-autoloader
3037

31-
# Step 4: Install Vapor CLI
38+
# Step 5: Install Vapor CLI
3239
- name: Install Vapor CLI
3340
run: composer global require laravel/vapor-cli
3441

35-
# Step 5: Log the branch being deployed (Optional enhancement)
42+
# Step 6: Log the branch being deployed (Optional enhancement)
3643
- name: Log Branch
3744
run: echo "Deploying branch ${{ github.ref_name }}"
3845

39-
# Step 6: Deploy to the Vapor Production Environment
46+
# Step 7: Deploy to the Vapor Production Environment
4047
- name: Deploy to Production
4148
working-directory: ./backend
4249
run: vapor deploy production

0 commit comments

Comments
 (0)