feat(pages): update index.html and pages.yaml for deployment

Updated the index.html to include a full HTML structure with Bootstrap
and Google tag. Modified pages.yaml to deploy from 'build/pages' branch
instead of the default branch.
This commit is contained in:
Dave Kerr
2025-03-08 21:22:41 +00:00
parent decfccdfbc
commit beb3d57a6a
2 changed files with 30 additions and 2 deletions

View File

@@ -1 +1,28 @@
Testing <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Hacker Laws</title>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RGJ5TDHWY9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-RGJ5TDHWY9');
</script>
</head>
<body>
<h1>Hacker Laws</h1>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
</body>
</html>

View File

@@ -3,7 +3,8 @@ name: Deploy to Pages
on: on:
# Runs on pushes targeting the default branch (or runs manually). # Runs on pushes targeting the default branch (or runs manually).
push: push:
branches: [$default-branch] # branches: [$default-branch]
branches: ['build/pages'] # we're deploying from a build branch for now.
workflow_dispatch: workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages