Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 7 additions & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GitHub Pages
name: Deploy redirect to GitHub Pages

on:
push:
Expand All @@ -14,32 +14,17 @@ concurrency:
group: "pages"
cancel-in-progress: true

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

jobs:
build:
name: Build site
deploy:
name: Deploy redirect
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
env:
PUBLIC_GA_ID: ${{ vars.PUBLIC_GA_ID }}
PUBLIC_GOOGLE_SITE_VERIFICATION: ${{ vars.PUBLIC_GOOGLE_SITE_VERIFICATION }}

- name: Setup Pages
uses: actions/configure-pages@v5
with:
Expand All @@ -48,16 +33,8 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
path: ./redirect

deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
20 changes: 20 additions & 0 deletions redirect/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Miller Databases has moved</title>
<link rel="canonical" href="https://danielmiller.ca/">
<meta http-equiv="refresh" content="0; url=https://danielmiller.ca/">
<meta name="robots" content="noindex">
<style>
body { font-family: system-ui, -apple-system, sans-serif; max-width: 40rem; margin: 4rem auto; padding: 0 1rem; line-height: 1.5; color: #222; }
a { color: #06c; }
</style>
</head>
<body>
<h1>This site has moved</h1>
<p>Miller Databases is retired. Redirecting you to <a href="https://danielmiller.ca/">danielmiller.ca</a>.</p>
<p>Past articles are now on <a href="https://medium.com/@daniel-miller">Medium</a>.</p>
<script>location.replace("https://danielmiller.ca/");</script>
</body>
</html>
File renamed without changes.
20 changes: 20 additions & 0 deletions redirect/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Miller Databases has moved</title>
<link rel="canonical" href="https://danielmiller.ca/">
<meta http-equiv="refresh" content="0; url=https://danielmiller.ca/">
<meta name="robots" content="noindex">
<style>
body { font-family: system-ui, -apple-system, sans-serif; max-width: 40rem; margin: 4rem auto; padding: 0 1rem; line-height: 1.5; color: #222; }
a { color: #06c; }
</style>
</head>
<body>
<h1>This site has moved</h1>
<p>Miller Databases is retired. Redirecting you to <a href="https://danielmiller.ca/">danielmiller.ca</a>.</p>
<p>Past articles are now on <a href="https://medium.com/@daniel-miller">Medium</a>.</p>
<script>location.replace("https://danielmiller.ca/");</script>
</body>
</html>
Loading