Skip to content

Commit

Permalink
ci: Add static site export
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Oct 18, 2023
1 parent f405969 commit 2f7d8df
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
cd scripts
npm install
node generate.mjs
cp -r ../assets/* ../dist
cd ../site
npm install
npm run build
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
folder: site/out
2 changes: 1 addition & 1 deletion site/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = { output: 'export' }

module.exports = nextConfig
File renamed without changes.
Binary file removed site/src/app/favicon.ico
Binary file not shown.
256 changes: 256 additions & 0 deletions site/src/app/page.tsx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions site/src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import clsx from 'clsx'
import clsx, { type ClassValue } from 'clsx'
import Link from 'next/link'

const baseStyles = {
Expand Down Expand Up @@ -49,7 +49,7 @@ export function Button<

className = clsx(
baseStyles[variant],
variantStyles[variant][color],
variantStyles[variant][color] as ClassValue,
className,
)

Expand Down

0 comments on commit 2f7d8df

Please sign in to comment.