Skip to content

Commit 6cc6092

Browse files
committed
Update action
1 parent a06dc6b commit 6cc6092

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/deploy-production.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,23 @@ jobs:
1919
- name: Setup PHP
2020
uses: shivammathur/setup-php@v2
2121
with:
22-
php-version: 8.3 # Updated to PHP 8.3 to match your Vapor config
22+
php-version: 8.3
2323
tools: composer:v2
2424
coverage: none
2525

26-
# Step 3: Install Vapor CLI
26+
# Step 3: Install project dependencies
27+
- name: Install Dependencies
28+
run: composer install --no-dev --no-progress --no-scripts --optimize-autoloader
29+
30+
# Step 4: Install Vapor CLI
2731
- name: Install Vapor CLI
2832
run: composer global require laravel/vapor-cli
2933

30-
# Step 4: Log the branch being deployed (Optional enhancement)
34+
# Step 5: Log the branch being deployed (Optional enhancement)
3135
- name: Log Branch
32-
run: echo "Deploying branch ${{ github.ref }}"
36+
run: echo "Deploying branch ${{ github.ref_name }}"
3337

34-
# Step 5: Deploy to the Vapor Production Environment
38+
# Step 6: Deploy to the Vapor Production Environment
3539
- name: Deploy to Production
3640
run: vapor deploy production
3741
env:

0 commit comments

Comments
 (0)