Skip to content

Commit 5033549

Browse files
committed
Add the Modulo landing page deployment to github workflow
1 parent 3d2fc4b commit 5033549

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,33 @@ on:
66
branches:
77
- dev
88

9-
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
9+
# This job installs dependencies, builds the book, and pushes it to FTP server
1010
jobs:
11+
deploy-landing-page:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 'latest'
20+
21+
- name: Build the landing page
22+
run: |
23+
npm run --prefix landing-page build
24+
working-directory: .
25+
26+
# Push the built files to Infomaniak FTP
27+
- name: 📂 Sync files
28+
uses: SamKirkland/[email protected]
29+
with:
30+
server: 31826.ftp.infomaniak.com
31+
username: 31826_elliot
32+
password: ${{ secrets.FTP_PASSWORD }}
33+
local-dir: ./landing-pages/public/
34+
server-dir: web/
35+
1136
deploy-book-appr:
1237
runs-on: ubuntu-latest
1338
steps:

0 commit comments

Comments
 (0)