Skip to content

Commit fbf207e

Browse files
authored
Edit main file
1 parent e7fb11a commit fbf207e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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: /

0 commit comments

Comments
 (0)