Skip to content

Commit 2746bfa

Browse files
committed
updated the readme file
1 parent 821949b commit 2746bfa

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
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
@@ -81,3 +81,23 @@ jobs:
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

0 commit comments

Comments
 (0)