Skip to content

Commit

Permalink
Add the Modulo landing page deployment to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MatveyK committed Feb 21, 2025
1 parent 3d2fc4b commit 5033549
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,33 @@ on:
branches:
- dev

# This job installs dependencies, builds the book, and pushes it to `gh-pages`
# This job installs dependencies, builds the book, and pushes it to FTP server
jobs:
deploy-landing-page:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 'latest'

- name: Build the landing page
run: |
npm run --prefix landing-page build
working-directory: .

# Push the built files to Infomaniak FTP
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: 31826.ftp.infomaniak.com
username: 31826_elliot
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./landing-pages/public/
server-dir: web/

deploy-book-appr:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 5033549

Please sign in to comment.