We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bbc1d6 commit ae79403Copy full SHA for ae79403
1 file changed
.github/workflows/frontend_deploy.yml
@@ -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
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
32
+ server: ${{ secrets.ftp_server }}
33
+ username: ${{ secrets.ftp_username }}
34
+ password: ${{ secrets.ftp_password }}
35
36
37
0 commit comments