Skip to content

Commit

Permalink
Add initial pages setup
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Caldwell authored and AJ Caldwell committed Aug 19, 2024
1 parent 6f8bfb8 commit 9475a6f
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy

on:
push:
branches: ["master"]
workflow_dispatch:

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Setup Pages
uses: actions/configure-pages@v4
with:
static_site_generator: next
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Upload artifact 📡
uses: actions/upload-pages-artifact@v3
with:
path: ./out

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
File renamed without changes.
6 changes: 3 additions & 3 deletions app/talk/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { getTalks } from "../api/talk-requests/route"
// import { getTalks } from "../api/talk-requests/route"
import "./page.css"

export default async function Talk() {
const data = await getTalks()
// const data = await getTalks()
return (
<main>
Current talks: {JSON.stringify(data)} <br />
{/* Current talks: {JSON.stringify(data)} <br /> */}
<form className="max-w-screen-md m-auto" action="/api/talk-requests" method="POST">
<input type="text" placeholder="Speaker Name" name="speaker" />
<input type="text" placeholder="Talk Title" name="title" />
Expand Down
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
output: "export"
}

export default nextConfig
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9475a6f

Please sign in to comment.