test deploy
Seto Elkahfi committed
Apr 18, 2025 at 14:17 UTC
e0d95399f2d96b606e55fea7a89828590699aa87
5 files changed
+57
-5
.github/deploy.yml
new
+50
@@ -0,0 +1,50 @@
1
+name: "Deploy Project"
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+env:
8
+ GIT_USER: ${{ secrets.GIT_USER_SMB }}
9
+ GIT_HOST: ${{ secrets.GIT_HOST_SMB }}
10
+ SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY_SMB }}
11
+ SSH_KNOWN_HOST: ${{ secrets.SSH_KNOWN_HOST_SMB }}
12
+
13
+jobs:
14
+ build:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
+ with:
20
+ lfs: true
21
+ - name: Setup Node
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version-file: .nvmrc
25
+ - name: Install pnpm
26
+ uses: pnpm/action-setup@v4
27
+ with:
28
+ version: 9
29
+ - name: Build for production
30
+ run: |
31
+ pnpm install --ignore-scripts
32
+ pnpm run build
33
+ - name: Install SSH key
34
+ uses: shimataro/ssh-key-action@v2
35
+ with:
36
+ key: ${{ env.SSH_PRIVATE_KEY }}
37
+ known_hosts: ${{ env.SSH_KNOWN_HOST }}
38
+ - name: Upload build
39
+ run: |
40
+ rsync -a node_modules ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
41
+ rsync -a .next ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
42
+ rsync -a public ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
43
+ rsync package.json ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
44
+ rsync pnpm-lock.yaml ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
45
+ rsync .nvmrc ${{ env.GIT_USER }}@${{ env.GIT_HOST }}:apps/ssr/hagerstenstreetcut/
46
+ shell: bash
47
+ - name: Deploy!
48
+ run: |
49
+ ssh ${{ env.GIT_USER }}@${{ env.GIT_HOST }} 'bash -s' < .smb/deploy.sh apps/ssr/hagerstenstreetcut
50
+ shell: bash
.nvmrc
new
+1
@@ -0,0 +1 @@
1
+v20.14.0
\ No newline at end of file
.smb/config
+1
@@ -1 +1,2 @@
1
title = "smbCloud config file"
2
+project = "Hagersten Street Cut"
\ No newline at end of file
app/layout.tsx
+4
-4
@@ -30,14 +30,14 @@ export default function RootLayout({
30
</Link>
31
</nav>
32
<p className="text-center text-gray-500 mb-8">
33
- This is a demo of AI-generated summaries of customer reviews. To learn
34
- more, see the{" "}
33
+ This is a summary of our customer reviews. To learn
34
+ more, visit the{" "}
35
<Link
36
className="underline"
37
target="_blank"
38
- href="https://vercel.com/templates/next.js/customer-reviews-ai-summary-nextjs-vercel"
38
+ href="https://maps.app.goo.gl/f4irVqGC9KGHzRDP9"
39
>
40
- complete template
40
+ google page
41
</Link>
42
.{"\n "}
43
</p>
components/ai-review-summary.tsx
+1
-1
@@ -18,7 +18,7 @@ export async function AIReviewSummary({ product }: { product: Product }) {
18
<Card className="w-full max-w-prose p-10 grid gap-10">
19
<CardHeader className="items-center space-y-0 gap-4 p-0">
20
<div className="grid gap-1 text-center">
21
- <CardTitle className="text-lg">AI Summary</CardTitle>
21
+ <CardTitle className="text-lg">Review Summary</CardTitle>
22
<CardDescription className="text-xs">
23
Based on {product.reviews.length} customer ratings
24
</CardDescription>