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
59 changes: 59 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
- master
- claude/grammi-ai-platform-mXNkV

# Allow manual trigger from GitHub Actions tab
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# Only one deployment at a time
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: grammi-ai/package-lock.json

- name: Install dependencies
working-directory: grammi-ai
run: npm ci

- name: Build
working-directory: grammi-ai
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: grammi-ai/out

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
9 changes: 8 additions & 1 deletion grammi-ai/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
output: "export",
// Repository name on GitHub: XircTwerk/Grammi.AI
// GitHub Pages URL: https://xirctwerk.github.io/Grammi.AI/
basePath: "/Grammi.AI",
images: {
unoptimized: true,
},
trailingSlash: true,
};

export default nextConfig;
Empty file added grammi-ai/public/.nojekyll
Empty file.
Loading
Loading