Skip to content

Commit ae79403

Browse files
Create frontend_deploy.yml
1 parent 6bbc1d6 commit ae79403

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Continuous Deployment
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [16.x]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: 'npm'
23+
- name: Cache
24+
uses: actions/cache@v3.0.2
25+
with:
26+
path: frontend/node_modules
27+
key: ${{ runner.os }}-${{ hashFiles('frontend/package-lock.json') }}
28+
- run: cd frontend && npm ci && npm run build
29+
- name: FTP Deploy
30+
uses: SamKirkland/FTP-Deploy-Action@4.3.0
31+
with:
32+
server: ${{ secrets.ftp_server }}
33+
username: ${{ secrets.ftp_username }}
34+
password: ${{ secrets.ftp_password }}
35+
36+
37+

0 commit comments

Comments
 (0)