Skip to content
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
78 changes: 78 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Deploy Hugo Site to GitHub Pages

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.152.0
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"

- name: Create atom.xml symlink
run: cp public/index.xml public/atom.xml

- name: Install htmltest
run: |
wget -O ${{ runner.temp }}/htmltest.tar.gz https://github.com/wjdp/htmltest/releases/download/v0.17.0/htmltest_0.17.0_linux_amd64.tar.gz \
&& tar xzf ${{ runner.temp }}/htmltest.tar.gz -C ${{ runner.temp }} \
&& sudo mv ${{ runner.temp }}/htmltest /usr/local/bin/

- name: Test HTML
run: htmltest

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
55 changes: 55 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: PR Check - Build and Test

on:
pull_request:
branches: ["main", "master"]

jobs:
build-and-test:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.152.0
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--gc \
--minify

- name: Create atom.xml symlink
run: cp public/index.xml public/atom.xml

- name: Install htmltest
run: |
wget -O ${{ runner.temp }}/htmltest.tar.gz https://github.com/wjdp/htmltest/releases/download/v0.17.0/htmltest_0.17.0_linux_amd64.tar.gz \
&& tar xzf ${{ runner.temp }}/htmltest.tar.gz -C ${{ runner.temp }} \
&& sudo mv ${{ runner.temp }}/htmltest /usr/local/bin/

- name: Test HTML
run: htmltest

- name: Build Summary
if: always()
run: |
echo "## Build Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "✅ Hugo build completed successfully" >> $GITHUB_STEP_SUMMARY
echo "✅ HTML link checking completed" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Site Statistics" >> $GITHUB_STEP_SUMMARY
echo "- Total pages: $(find public -name "*.html" | wc -l)" >> $GITHUB_STEP_SUMMARY
echo "- Total assets: $(find public/assets -type f 2>/dev/null | wc -l)" >> $GITHUB_STEP_SUMMARY
51 changes: 0 additions & 51 deletions .github/workflows/update-tags-timeline.yml

This file was deleted.

15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
.idea/
blog-gen/_drafts/

# Jekyll
# Hugo
public/
resources/_gen/
.hugo_build.lock

# Jekyll (legacy - can be removed after migration)
_site/
.jekyll-cache
.jekyll-metadata
.sass-cache

# Ruby
# Ruby (legacy - can be removed after migration)
.bundle/
.byebug_history
.ruby-gemset
Expand All @@ -30,4 +35,8 @@ coverage
gh-pages/
pkg/
test/dest
tmp/*
tmp/

# htmltest
tmp/
.htmltest/
9 changes: 9 additions & 0 deletions .htmltest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
DirectoryPath: "public"
CheckExternal: false # Don't check external links (too slow and unreliable)
IgnoreDirectoryMissingTrailingSlash: true
IgnoreInternalEmptyHash: true
IgnoreAltMissing: true # Ignore missing alt tags (accessibility issue, not broken link)
IgnoreURLs:
- "^https://aktech.github.io" # Will be checked internally
- "^/livereload.js" # Hugo dev server only
- "github.com/moorepants$" # Missing http/https prefix in content
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

19 changes: 0 additions & 19 deletions 404.html

This file was deleted.

7 changes: 0 additions & 7 deletions Gemfile

This file was deleted.

75 changes: 0 additions & 75 deletions Gemfile.lock

This file was deleted.

37 changes: 0 additions & 37 deletions _config.yml

This file was deleted.

Loading