An automatically maintained public project site for myelin projects: per-PR entries, weekly summaries, a git-graph timeline and user docs, built with Hugo and deployed to GitHub Pages
92%
Does it follow best practices?
Impact
91%
1.51xAverage score across 4 eval scenarios
Medium
Suggest reviewing before use
name: Site
on:
push:
branches: [TRUNK]
workflow_dispatch:
permissions:
contents: read
pull-requests: read
issues: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.170.1
SITE_TILE: .tessl/plugins/mhclg-aaai/proj-site
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install the proj-site tile
run: npx -y @tessl/cli@0.123.0 install --yes --accept-warnings
- name: Check the tile was installed
run: |
[ -f "$SITE_TILE/skills/site-setup/scripts/check-pr.sh" ] || {
echo "::error::The proj-site tile is not at $SITE_TILE. Check that tessl.json lists mhclg-aaai/proj-site and that tessl install could fetch it."
exit 1
}
- name: Install Hugo
run: |
curl -fsSL -o "$RUNNER_TEMP/hugo.tgz"
"https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.tar.gz"
tar -xzf "$RUNNER_TEMP/hugo.tgz" -C "$RUNNER_TEMP" hugo
sudo mv "$RUNNER_TEMP/hugo" /usr/local/bin/hugo
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- id: pages
uses: actions/configure-pages@v6
- name: Build site
env:
GH_TOKEN: ${{ github.token }}
SITE_BASE_URL: ${{ steps.pages.outputs.base_url }}/
run: bash "$SITE_TILE/skills/site-setup/core/build.sh" . "$RUNNER_TEMP/site"
- uses: actions/upload-pages-artifact@v5
with:
path: ${{ runner.temp }}/site/public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5
.tessl-plugin
skills
site-setup
adapters
reference
upcoming
core
templates
site-update
site-writing