Skip to content

Commit 7bd8a2d

Browse files
authored
Merge pull request #35 from duylongpro99/development
Development
2 parents 146340f + a7c7c43 commit 7bd8a2d

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

.github/workflows/build-reusable.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ on:
66
build_output: # Changed from build-output to build_output for consistency
77
description: "Build output artifact"
88
value: ${{ jobs.build.outputs.build_output }}
9+
secrets:
10+
NEXT_PUBLIC_CONVEX_URL:
11+
required: true
12+
CONVEX_DEPLOYMENT:
13+
required: true
14+
CLERK_SECRET_KEY:
15+
required: true
16+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:
17+
required: true
18+
LIVE_BLOCK_SECRET_API_KEY:
19+
required: true
920
jobs:
1021
build:
1122
name: "Build"

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main]
77
jobs:
88
build:
9-
if: github.event.pull_request.merged == true
9+
# if: github.event.pull_request.merged == true
1010
name: Build Application
1111
uses: ./.github/workflows/build-reusable.yml
1212
secrets:

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ jobs:
77
build:
88
name: Build Application
99
uses: ./.github/workflows/build-reusable.yml
10+
secrets:
11+
NEXT_PUBLIC_CONVEX_URL: ${{ secrets.NEXT_PUBLIC_CONVEX_URL }}
12+
CONVEX_DEPLOYMENT: ${{ secrets.CONVEX_DEPLOYMENT }}
13+
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
14+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
15+
LIVE_BLOCK_SECRET_API_KEY: ${{ secrets.LIVE_BLOCK_SECRET_API_KEY }}
1016

1117
deploy:
1218
name: Deploy Application to Vercel

next.config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
import type { NextConfig } from "next";
22

3-
const nextConfig: NextConfig = {
4-
// env: {
5-
// NEXT_PUBLIC_CONVEX_URL: process.env.NEXT_PUBLIC_CONVEX_URL,
6-
// CONVEX_DEPLOYMENT: process.env.CONVEX_DEPLOYMENT,
7-
// CLERK_SECRET_KEY: process.env.CLERK_SECRET_KEY,
8-
// NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:
9-
// process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY,
10-
// LIVE_BLOCK_SECRET_API_KEY: process.env.LIVE_BLOCK_SECRET_API_KEY,
11-
// },
12-
};
3+
const nextConfig: NextConfig = {};
134

145
export default nextConfig;

0 commit comments

Comments
 (0)