Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SHIINASAMA committed Nov 3, 2024
1 parent 8325e95 commit 9b8dd69
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 27 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: GitHub Pages

on:
push:
branches:
- main

job:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
runs: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
withs:
folder: out
4 changes: 2 additions & 2 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextConfig } from "next";
import type {NextConfig} from "next";

const nextConfig: NextConfig = {
/* config options here */
output: 'export'
};

export default nextConfig;
40 changes: 20 additions & 20 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
import type { Metadata } from "next";
import type {Metadata} from "next";
import localFont from "next/font/local";
import "./globals.css";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Hi, I'm Kaoru 👋",
description: "Kaoru's Profile",
};

export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
</body>
</html>
);
</body>
</html>
);
}
5 changes: 0 additions & 5 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import MyHeader from "@/app/components/myheader";
import Main from "@/app/main"

export const metadata = {
title: "Hi, I'm Kaoru 👋",
description: "Kaoru's Profile",
};

export default async function Home() {
return (
<div className="rounded-container">
Expand Down

0 comments on commit 9b8dd69

Please sign in to comment.