File tree Expand file tree Collapse file tree 5 files changed +98
-7
lines changed
Expand file tree Collapse file tree 5 files changed +98
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy FYNDAK to Production
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : " 18"
20+ cache : " npm"
21+
22+ - name : Install dependencies
23+ run : npm ci
24+
25+ - name : Build project
26+ run : npm run build
27+
28+ - name : Deploy to FTP
29+ uses : SamKirkland/FTP-Deploy-Action@v4.3.4
30+ with :
31+ server : ${{ secrets.FTP_HOST }}
32+ username : ${{ secrets.FTP_USERNAME }}
33+ password : ${{ secrets.FTP_PASSWORD }}
34+ local-dir : ./dist/
35+ server-dir : /public_html/
36+
37+ - name : Upload .htaccess
38+ uses : SamKirkland/FTP-Deploy-Action@v4.3.4
39+ with :
40+ server : ${{ secrets.FTP_HOST }}
41+ username : ${{ secrets.FTP_USERNAME }}
42+ password : ${{ secrets.FTP_PASSWORD }}
43+ local-dir : ./
44+ server-dir : /public_html/
45+ include : .htaccess
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # FYNDAK Deployment Script
4+ # Replace these with your actual FTP credentials
5+ FTP_HOST=" your-ftp-host.inleed.se"
6+ FTP_USER=" your-username"
7+ FTP_PASS=" your-password"
8+ FTP_PATH=" /public_html" # or wherever your web root is
9+
10+ echo " 🚀 Starting FYNDAK deployment..."
11+
12+ # Build the project
13+ echo " 📦 Building project..."
14+ npm run build
15+
16+ if [ $? -eq 0 ]; then
17+ echo " ✅ Build successful!"
18+
19+ # Upload dist folder contents via FTP
20+ echo " 📤 Uploading files..."
21+
22+ # Using lftp for FTP upload (install with: brew install lftp)
23+ lftp -c "
24+ set ftp:ssl-allow no;
25+ open -u $FTP_USER ,$FTP_PASS $FTP_HOST ;
26+ lcd dist;
27+ cd $FTP_PATH ;
28+ mirror --reverse --delete --verbose;
29+ "
30+
31+ # Upload .htaccess separately
32+ lftp -c "
33+ set ftp:ssl-allow no;
34+ open -u $FTP_USER ,$FTP_PASS $FTP_HOST ;
35+ cd $FTP_PATH ;
36+ put .htaccess;
37+ "
38+
39+ echo " 🎉 Deployment complete!"
40+ echo " 🌐 Visit: https://fyndak.se"
41+ else
42+ echo " ❌ Build failed! Please fix errors before deploying."
43+ fi
Original file line number Diff line number Diff line change 22< html lang ="en ">
33 < head >
44 < meta charset ="UTF-8 " />
5- < link rel ="icon " type ="image/svg+xml " href ="/vite.svg " />
5+ < link rel ="icon " type ="image/jpeg " href ="/fyndak-logo.jpeg " />
66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7- < title > FYNDAK Bidding Application </ title >
7+ < title > FYNDAK - Auction Bidding Platform </ title >
88 </ head >
99 < body >
1010 < div id ="root "> </ div >
Original file line number Diff line number Diff line change 88 "build" : " vite build" ,
99 "lint" : " eslint ." ,
1010 "preview" : " vite preview" ,
11- "typecheck" : " tsc --noEmit -p tsconfig.app.json"
11+ "typecheck" : " tsc --noEmit -p tsconfig.app.json" ,
12+ "deploy" : " ./deploy.sh"
1213 },
1314 "dependencies" : {
1415 "@supabase/supabase-js" : " ^2.57.4" ,
Original file line number Diff line number Diff line change @@ -89,11 +89,13 @@ export const Layout: React.FC<LayoutProps> = ({ children }) => {
8989 < div className = "flex items-center gap-6" >
9090 { /* Logo */ }
9191 < NavLink to = "/" className = "flex items-center gap-3 group" >
92- < div className = "w-10 h-10 bg-gradient-to-br from-green-500 to-emerald-600 rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300 shadow-lg" >
93- < Package className = "w-5 h-5 text-white" />
94- </ div >
92+ < img
93+ src = "/fyndak-logo.jpeg"
94+ alt = "FYNDAK Logo"
95+ className = "w-10 h-10 rounded-xl object-cover group-hover:scale-110 transition-transform duration-300 shadow-lg"
96+ />
9597 < span className = "text-2xl font-bold text-gray-900 dark:text-white group-hover:text-green-600 dark:group-hover:text-green-400 transition-colors duration-300" >
96- Fyndak
98+ FYNDAK
9799 </ span >
98100 </ NavLink >
99101
You can’t perform that action at this time.
0 commit comments