Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ on:
build_output: # Changed from build-output to build_output for consistency
description: "Build output artifact"
value: ${{ jobs.build.outputs.build_output }}
secrets:
NEXT_PUBLIC_CONVEX_URL:
required: true
CONVEX_DEPLOYMENT:
required: true
CLERK_SECRET_KEY:
required: true
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:
required: true
LIVE_BLOCK_SECRET_API_KEY:
required: true
jobs:
build:
name: "Build"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches: [main]
jobs:
build:
if: github.event.pull_request.merged == true
# if: github.event.pull_request.merged == true
name: Build Application
uses: ./.github/workflows/build-reusable.yml
secrets:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ jobs:
build:
name: Build Application
uses: ./.github/workflows/build-reusable.yml
secrets:
NEXT_PUBLIC_CONVEX_URL: ${{ secrets.NEXT_PUBLIC_CONVEX_URL }}
CONVEX_DEPLOYMENT: ${{ secrets.CONVEX_DEPLOYMENT }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
LIVE_BLOCK_SECRET_API_KEY: ${{ secrets.LIVE_BLOCK_SECRET_API_KEY }}

deploy:
name: Deploy Application to Vercel
Expand Down
11 changes: 1 addition & 10 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
// env: {
// NEXT_PUBLIC_CONVEX_URL: process.env.NEXT_PUBLIC_CONVEX_URL,
// CONVEX_DEPLOYMENT: process.env.CONVEX_DEPLOYMENT,
// CLERK_SECRET_KEY: process.env.CLERK_SECRET_KEY,
// NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:
// process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY,
// LIVE_BLOCK_SECRET_API_KEY: process.env.LIVE_BLOCK_SECRET_API_KEY,
// },
};
const nextConfig: NextConfig = {};

export default nextConfig;