File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Laravel Project on push
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ jobs :
7
+ web-deploy :
8
+ name : Deploy
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Get the latest code
12
+ uses : actions/checkout@v2.3.2
13
+ - uses : actions/setup-node@master
14
+ - name : Copy .env
15
+ run : php -r "file_exists('.env') || copy('.env.example', '.env');"
16
+ - name : Install Dependencies
17
+ run : composer update --ignore-platform-reqs
18
+ - name : Generate key
19
+ run : php artisan key:generate
20
+ - name : Generate storage link
21
+ run : php artisan storage:link
22
+ - name : Directory Permissions
23
+ run : chmod -R 777 storage bootstrap/cache
24
+ - name : 📂 Sync files
25
+ uses : SamKirkland/FTP-Deploy-Action@4.0.0
26
+ with :
27
+ server : ${{ secrets.FTP_SERVER }}
28
+ username : ${{ secrets.FTP_USERNAME }}
29
+ password : ${{ secrets.FTP_PASSWORD }}
30
+ server-dir : /
You can’t perform that action at this time.
0 commit comments