Skip to content

Commit c791d65

Browse files
committed
GitHub Pages Deploy reconfigured
1 parent 4592dcf commit c791d65

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Dev Notepad to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "20"
20+
cache: "pnpm"
21+
22+
- name: Install dependencies
23+
run: pnpm install
24+
25+
- name: Build static site
26+
run: pnpm run build
27+
28+
- name: Deploy to GitHub Pages
29+
uses: peaceiris/actions-gh-pages@v4
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: .output/public
33+
publish_branch: gh-pages

nuxt.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import tailwindcss from "@tailwindcss/vite";
33
export default defineNuxtConfig({
44
compatibilityDate: "2025-07-15",
55
devtools: { enabled: false },
6+
ssr: false,
7+
nitro: { preset: "static" },
68
app: { baseURL: "/devnotepad/" },
79
modules: [
810
"@nuxt/icon",

0 commit comments

Comments
 (0)