Skip to content

Commit 63d6989

Browse files
committed
Add GitHub Actions workflow for deployment to GitHub Pages
1 parent 30e2475 commit 63d6989

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '18'
18+
cache: 'pnpm' # pnpm için cache ayarını güncelle
19+
20+
- name: Install pnpm
21+
run: npm install -g pnpm # pnpm'u global olarak kur
22+
23+
- name: Install Dependencies
24+
run: pnpm install # npm ci yerine pnpm install
25+
26+
- name: Build
27+
run: pnpm build # npm run build yerine pnpm build
28+
29+
- name: Add .nojekyll
30+
run: touch out/.nojekyll # Jekyll’i devre dışı bırak
31+
32+
- name: Deploy
33+
uses: JamesIves/github-pages-deploy-action@v4
34+
with:
35+
branch: gh-pages
36+
folder: out

next.config.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
const nextConfig = {
2-
output: "export",
2+
output: 'export',
3+
basePath: '/keyx-navigation-menu-boilerplate',
4+
images: {
5+
unoptimized: true,
6+
},
37
};
48

5-
export default nextConfig;
9+
export default nextConfig;

0 commit comments

Comments
 (0)