Skip to content

Commit 4e7c538

Browse files
committed
Rebuild portfolio site
0 parents  commit 4e7c538

32 files changed

Lines changed: 2697 additions & 0 deletions

.github/workflows/deploy.yml

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

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
dist/
3+
.vite/
4+
.DS_Store
5+
.env
6+
.env.*
7+
!.env.example

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hubertdeng.com

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# hubertdeng.com
2+
3+
Personal portfolio and blog built with React, Vite, TypeScript, and Markdown content.
4+
5+
## Local development
6+
7+
```sh
8+
npm install
9+
npm run dev
10+
```
11+
12+
## Build
13+
14+
```sh
15+
npm run build
16+
```
17+
18+
The build writes static files to `dist`.
19+
20+
## Writing posts
21+
22+
Add Markdown files to `src/content/posts`. Required front matter:
23+
24+
```yaml
25+
---
26+
title: Post Title
27+
description: One sentence summary.
28+
date: 2026-06-05
29+
tags:
30+
- engineering
31+
---
32+
```
33+
34+
The filename becomes the post slug.
35+
36+
## Adding projects
37+
38+
Add Markdown files to `src/content/projects`. Required front matter:
39+
40+
```yaml
41+
---
42+
title: Project Name
43+
category: Infrastructure
44+
summary: One sentence summary.
45+
dates: 2026
46+
role: Builder
47+
featured: true
48+
order: 1
49+
---
50+
```
51+
52+
Set `featured: true` to show the project on the home page.

index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title><!--page-title--></title>
7+
<meta name="description" content="<!--page-description-->" />
8+
<link rel="canonical" href="<!--canonical-url-->" />
9+
<link rel="alternate" type="application/rss+xml" title="Hubert Deng" href="/feed.xml" />
10+
</head>
11+
<body>
12+
<div id="root"><!--app-html--></div>
13+
<script type="module" src="/src/entry-client.tsx"></script>
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)