diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8f2889f..6e1a495 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy to GitHub Pages +name: Deploy redirect to GitHub Pages on: push: @@ -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: @@ -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 diff --git a/redirect/404.html b/redirect/404.html new file mode 100644 index 0000000..b0ea36a --- /dev/null +++ b/redirect/404.html @@ -0,0 +1,20 @@ + + +
+ +Miller Databases is retired. Redirecting you to danielmiller.ca.
+Past articles are now on Medium.
+ + + diff --git a/public/CNAME b/redirect/CNAME similarity index 100% rename from public/CNAME rename to redirect/CNAME diff --git a/redirect/index.html b/redirect/index.html new file mode 100644 index 0000000..b0ea36a --- /dev/null +++ b/redirect/index.html @@ -0,0 +1,20 @@ + + + + +Miller Databases is retired. Redirecting you to danielmiller.ca.
+Past articles are now on Medium.
+ + +