File tree Expand file tree Collapse file tree 3 files changed +23
-34
lines changed Expand file tree Collapse file tree 3 files changed +23
-34
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [ main ]
6
6
7
+ concurrency : production_environment
8
+
7
9
jobs :
8
10
deploy :
9
11
environment : production
10
12
runs-on : ubuntu-latest
11
13
steps :
12
14
- uses : actions/checkout@v2
15
+
13
16
- name : Composer Install
14
17
run : composer install --ignore-platform-reqs
18
+
19
+ - name : Setup PHP
20
+ uses : shivammathur/setup-php@v2
21
+ with :
22
+ php-version : " 8.1"
23
+
24
+ - name : Install dependencies
25
+ run : composer install
26
+
15
27
- name : Run Tests
16
28
run : vendor/bin/phpunit
17
- - name : Deploy to production
18
- uses : appleboy/ssh-action@master
29
+
30
+ - name : Deploy
31
+ uses : deployphp/action@v1
19
32
with :
20
- username : ${{ secrets.SSH_USERNAME }}
21
- host : ${{ secrets.SSH_HOST }}
22
- key : ${{ secrets.SSH_KEY }}
23
- script : ' cd /var/www/html2 && ./deploy/server_deploy.sh'
33
+ private-key : ${{ secrets.SSH_KEY }}
34
+ dep : deploy
Original file line number Diff line number Diff line change 17
17
->set ('remote_user ' , 'deployer ' )
18
18
->set ('deploy_path ' , '/var/www/html ' );
19
19
20
+ // Custom tasks
21
+ task ('artisan:horizon:terminate ' , artisan ('horizon:terminate ' ));
22
+ task ('artisan:websockets:restart ' , artisan ('websockets:restart ' ));
23
+
20
24
// Hooks
21
25
22
26
after ('deploy:failed ' , 'deploy:unlock ' );
27
+ after ('deploy:symlink ' , 'artisan:horizon:terminate ' );
28
+ after ('deploy:symlink ' , 'artisan:websockets:restart ' );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments