Skip to content

Commit fbaca4a

Browse files
author
Minseo Kim
committed
Migrate to markdown and GitHub Pages
1 parent 1d8f61b commit fbaca4a

File tree

76 files changed

+14367
-4798
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+14367
-4798
lines changed

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
cache: "npm"
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build
34+
run: npm run build
35+
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: out
40+
41+
deploy:
42+
needs: build
43+
runs-on: ubuntu-latest
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "dev-server",
6+
"type": "shell",
7+
"command": "npm",
8+
"args": [
9+
"run",
10+
"dev"
11+
],
12+
"isBackground": true,
13+
"problemMatcher": [],
14+
"group": "build"
15+
}
16+
]
17+
}

next-sitemap.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ module.exports = {
55
generateRobotsTxt: true,
66
sitemapSize: 7000,
77
generateIndexSitemap: false,
8+
outDir: "out",
89
}

next.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
const repoName = "MS_Tech_Blog"
2+
const isProd = process.env.NODE_ENV === "production"
3+
const basePath = isProd ? `/${repoName}` : ""
4+
15
module.exports = {
6+
output: "export",
7+
trailingSlash: true,
8+
basePath,
9+
assetPrefix: basePath,
210
images: {
3-
domains: ['www.notion.so', 'lh5.googleusercontent.com', 's3-us-west-2.amazonaws.com'],
11+
unoptimized: true,
12+
domains: ["www.notion.so", "lh5.googleusercontent.com", "s3-us-west-2.amazonaws.com"],
13+
},
14+
env: {
15+
NEXT_PUBLIC_BASE_PATH: basePath,
416
},
517
}

0 commit comments

Comments
 (0)