Skip to content

Commit e5a24f1

Browse files
committed
Add GitHub Pages deployment configuration and necessary files
1 parent b533047 commit e5a24f1

6 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy to GitHub Pages
2+
3+
# Publishes the pre-built docs/ folder to GitHub Pages.
4+
# Runs alongside the Azure Static Web Apps workflow; both deploy the same
5+
# committed docs/ artifact. The custom domain (makeboldsolutions.com) is set
6+
# via the CNAME file inside docs/.
7+
8+
on:
9+
push:
10+
branches: [main]
11+
workflow_dispatch:
12+
13+
# Allow one concurrent deployment; don't cancel an in-progress run.
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
jobs:
24+
deploy:
25+
runs-on: ubuntu-latest
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: Configure Pages
33+
uses: actions/configure-pages@v5
34+
35+
- name: Upload docs/ artifact
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: docs
39+
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ copyFileSync(join(staticDir, 'robots.txt'), join(docsDir, 'robots.txt'));
4141
copyFileSync(join(staticDir, 'sitemap.xml'), join(docsDir, 'sitemap.xml'));
4242
// Copy Azure Static Web Apps config (routing, redirects, MIME types, security headers)
4343
copyFileSync(join(staticDir, 'staticwebapp.config.json'), join(docsDir, 'staticwebapp.config.json'));
44+
// Copy GitHub Pages config: CNAME sets the custom domain, .nojekyll serves files as-is
45+
copyFileSync(join(staticDir, 'CNAME'), join(docsDir, 'CNAME'));
46+
copyFileSync(join(staticDir, '.nojekyll'), join(docsDir, '.nojekyll'));
4447
const wellKnownDir = join(docsDir, '.well-known');
4548
mkdirSync(wellKnownDir, { recursive: true });
4649
copyFileSync(join(staticDir, '.well-known', 'security.txt'), join(wellKnownDir, 'security.txt'));

docs/.nojekyll

Whitespace-only changes.

docs/CNAME

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

static/.nojekyll

Whitespace-only changes.

static/CNAME

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

0 commit comments

Comments
 (0)