feat: publish all merged sites from one Pages workflow with a landing page

This commit is contained in:
tiennm99 committed 2026-09-30 16:17:45 +07:00
1 parent 063e05871b
commit fdde45d437
8 files changed
+75 -11

No files matched your search

@@ -1,12 +1,9 @@
name: Deploy static site to Pages
name: Deploy to GitHub Pages
on:
push:
branches:
- main
paths:
- "page/**"
- ".github/workflows/pages.yaml"
workflow_dispatch:
permissions:
@@ -27,12 +24,22 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v7
# hurt keeps its Cocos Creator source next to the built site, so only
# hurt/page/ is published; every other site is served as-is.
- name: Assemble site
run: |
mkdir _site
cp index.html _site/
for d in 20200411 apart beentogether demngayxaem dental-visit mai-birthday-2021; do
cp -r "$d" _site/
done
cp -r hurt/page _site/hurt
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Upload page/ artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: ./page
path: ./_site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
+1 -1
View File
@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<title>Gửi em yêu!</title>
<link rel="shortcut icon" href="/img/icon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="icon/favicon.ico" type="image/x-icon" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
+25
View File
@@ -0,0 +1,25 @@
# nntv
A collection of old websites I made for my ex-girlfriend, Vy. Each one used to
live in its own repository; they are merged here with their full commit history,
each in its own folder.
| Folder | Site | Made |
|---|---|---|
| [`20200411/`](20200411/) | <https://tiennm99.github.io/nntv/20200411/> | 2020 |
| [`beentogether/`](beentogether/) | <https://tiennm99.github.io/nntv/beentogether/> | 2021 |
| [`apart/`](apart/) | <https://tiennm99.github.io/nntv/apart/> | 2021 |
| [`mai-birthday-2021/`](mai-birthday-2021/) | <https://tiennm99.github.io/nntv/mai-birthday-2021/> | 2021 |
| [`dental-visit/`](dental-visit/) | <https://tiennm99.github.io/nntv/dental-visit/> | 2021 |
| [`demngayxaem/`](demngayxaem/) | <https://tiennm99.github.io/nntv/demngayxaem/> | 2022 |
| [`hurt/`](hurt/) | <https://tiennm99.github.io/nntv/hurt/> | 2022 |
## Deploy
[`.github/workflows/pages.yml`](.github/workflows/pages.yml) publishes every
folder to GitHub Pages as-is, except `hurt/`, where only the built `hurt/page/`
is published. The root [`index.html`](index.html) links to all of them.
## License
Each folder keeps its own Apache-2.0 `LICENSE`.
+1 -1
View File
@@ -2,7 +2,7 @@
Small personal website with photos and music for someone far away. Photos + ambient music; designed for slow scroll.
Live: https://tiennm99.github.io/apart/
Live: https://tiennm99.github.io/nntv/apart/
## License
+1 -1
View File
@@ -2,7 +2,7 @@
Been Together — a small website celebrating time spent together with music and photos.
Live: https://tiennm99.github.io/beentogether/
Live: https://tiennm99.github.io/nntv/beentogether/
## License
+1 -1
View File
@@ -2,7 +2,7 @@
Đếm ngày xa em — a small relationship "days-apart" counter website. Real-time counter using `Date.now()` since a fixed anchor date.
Live: https://tiennm99.github.io/demngayxaem/
Live: https://tiennm99.github.io/nntv/demngayxaem/
## License
+1 -1
View File
@@ -11,7 +11,7 @@ npm install && npm start
## Live site
The built static version lives in [`page/`](page/) and is published via GitHub Pages at
<https://tiennm99.github.io/hurt/>.
<https://tiennm99.github.io/nntv/hurt/>.
## License
+32
View File
@@ -0,0 +1,32 @@
<!doctype html>
<html lang="vi">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>nntv</title>
<style>
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #fff5f7; color: #3a2a30; font-family: system-ui, sans-serif; }
main { padding: 24px 16px; max-width: 480px; width: 100%; box-sizing: border-box; }
h1 { font-weight: 600; margin: 0 0 16px; }
ul { list-style: none; margin: 0; padding: 0; }
li { margin: 8px 0; }
a { display: block; padding: 12px 16px; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
a:hover { background: #ffe4ea; }
small { color: #8a6f78; }
</style>
</head>
<body>
<main>
<h1>nntv</h1>
<ul>
<li><a href="20200411/">20200411 <small>· 2020</small></a></li>
<li><a href="beentogether/">Been Together <small>· 2021</small></a></li>
<li><a href="apart/">Apart <small>· 2021</small></a></li>
<li><a href="mai-birthday-2021/">Happy Birthday Trúc Mai <small>· 2021</small></a></li>
<li><a href="dental-visit/">Dental Visit <small>· 2021</small></a></li>
<li><a href="demngayxaem/">Đếm ngày xa em <small>· 2022</small></a></li>
<li><a href="hurt/">Hurt <small>· 2022</small></a></li>
</ul>
</main>
</body>
</html>