File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 5454 run : npm ci
5555
5656 - name : Install Dependencies
57- run : composer install --no-interaction --prefer-dist --optimize-autoloader
57+ run : composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev --no-progress
5858
5959 - name : Copy Environment File
6060 run : cp .env.example .env
8181 DB_PORT : 33306
8282 DB_USER : root
8383 run : ./vendor/bin/pest --parallel
84+
85+ - name : Synchronize Files To Server
86+ uses : easingthemes/ssh-deploy@main
87+ with :
88+ SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
89+ SOURCE : " ."
90+ REMOTE_HOST : ${{ secrets.VPS_HOST }}
91+ REMOTE_USER : ${{ secrets.VPS_USER }}
92+ TARGET : " /var/www/html/document-analyzer"
93+
94+ - name : Run Remote/Artisan Commands
95+ uses : appleboy/ssh-action@v1
96+ with :
97+ host : ${{ secrets.VPS_HOST }}
98+ username : ${{ secrets.VPS_USER }}
99+ key : ${{ secrets.SSH_PRIVATE_KEY }}
100+ script : |
101+ cd /var/www/html/document-analyzer
102+ php artisan migrate --force
103+ php artisan optimize
You can’t perform that action at this time.
0 commit comments