Dynamic import for client components #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Deploy to Hostinger | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout code | |
uses: actions/checkout@v3 | |
- name: ⚙️ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: 📦 Install dependencies | |
run: npm ci | |
- name: 🛠 Build static site | |
run: npm run build | |
- name: 🚀 Deploy via FTP | |
uses: ghaithatfeh/FTP-Deploy-Action@master | |
with: | |
server: ${{ secrets.FTP_HOST }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
server-dir: ${{ secrets.FTP_TARGET_DIR }} | |
local-dir: ./out/ |