File tree Expand file tree Collapse file tree 5 files changed +409
-2
lines changed
Expand file tree Collapse file tree 5 files changed +409
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to Vapor Production
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - feat/vapor
8+
9+ jobs :
10+ vapor :
11+ name : Deploy to Vapor Production
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ # Step 1: Checkout the repository
16+ - uses : actions/checkout@v2
17+
18+ # Step 2: Setup PHP
19+ - name : Setup PHP
20+ uses : shivammathur/setup-php@v2
21+ with :
22+ php-version : 8.3 # Updated to PHP 8.3 to match your Vapor config
23+ tools : composer:v2
24+ coverage : none
25+
26+ # Step 3: Install Vapor CLI
27+ - name : Install Vapor CLI
28+ run : composer global require laravel/vapor-cli
29+
30+ # Step 4: Log the branch being deployed (Optional enhancement)
31+ - name : Log Branch
32+ run : echo "Deploying branch ${{ github.ref }}"
33+
34+ # Step 5: Deploy to the Vapor Production Environment
35+ - name : Deploy to Production
36+ run : vapor deploy production
37+ env :
38+ VAPOR_API_TOKEN : ${{ secrets.VAPOR_API_TOKEN }}
Original file line number Diff line number Diff line change 88.env
99.env.backup
1010.env.production
11+ .env.staging
1112.phpunit.result.cache
1213Homestead.json
1314Homestead.yaml
Original file line number Diff line number Diff line change 1717 "laravel/framework" : " ^11.0" ,
1818 "laravel/sanctum" : " ^4.0" ,
1919 "laravel/tinker" : " ^2.8" ,
20+ "laravel/vapor-core" : " ^2.37" ,
2021 "league/flysystem-aws-s3-v3" : " ^3.0" ,
2122 "maatwebsite/excel" : " ^3.1" ,
2223 "nette/php-generator" : " ^4.0" ,
You can’t perform that action at this time.
0 commit comments