Compare commits
No commits in common. "main" and "agentic-ai-flow" have entirely different histories.
main
...
agentic-ai
3 changed files with 9 additions and 47 deletions
|
|
@ -1,35 +0,0 @@
|
|||
name: Build Website
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
git clone --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git .
|
||||
|
||||
- name: Prepare output directory
|
||||
run: |
|
||||
mkdir -p site/public
|
||||
chmod 777 site
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir -p "$PWD/.hugo-cache"
|
||||
docker run --rm \
|
||||
-u "$(id -u):$(id -g)" \
|
||||
-v "$PWD/site:/src" \
|
||||
-v "$PWD/.hugo-cache:/cache" \
|
||||
-e GOPATH=/cache \
|
||||
-w /src \
|
||||
ghcr.io/gohugoio/hugo:latest \
|
||||
--minify --destination "public" --baseURL "/"
|
||||
- name: Deploy
|
||||
run: |
|
||||
echo "${{ secrets.FORGEJO_SSH }}" > /tmp/deploy_key
|
||||
chmod 600 /tmp/deploy_key
|
||||
rsync -az --delete \
|
||||
--exclude 'resume/' \
|
||||
-e "ssh -i /tmp/deploy_key -o StrictHostKeyChecking=no" \
|
||||
site/public/. \
|
||||
${{ vars.JMOPINES_USER }}@${{ vars.JMOPINES_IP }}:/var/www/jmopines/
|
||||
rm /tmp/deploy_key
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Build the Hugo site into the `public/` directory for deployment (e.g. nginx).
|
||||
# Build and serve the Hugo site locally using Docker.
|
||||
# Usage: ./scripts/build.sh
|
||||
|
||||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../.env"
|
||||
PORT="${1:-$PORT}"
|
||||
|
||||
if [[ ! -d "${SITE_DIR}" ]]; then
|
||||
echo "[build] Site directory not found: ${SITE_DIR}"
|
||||
|
|
@ -12,13 +13,14 @@ if [[ ! -d "${SITE_DIR}" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "[build] Building site into ${SITE_DIR}/public ..."
|
||||
echo "[build] Serving site at http://localhost:${PORT}/"
|
||||
echo "[build] Press Ctrl+C to stop."
|
||||
|
||||
# Run Hugo in Docker to produce static files. This does not start the dev server.
|
||||
docker run --rm \
|
||||
-v "${SITE_DIR}:/src" \
|
||||
-w /src \
|
||||
"${HUGO_IMAGE}" \
|
||||
--minify --destination "public" --baseURL "/"
|
||||
|
||||
echo "[build] Build complete: ${SITE_DIR}/public"
|
||||
-p "${PORT}:1313" \
|
||||
"${HUGO_IMAGE}" server \
|
||||
--bind 0.0.0.0 \
|
||||
--baseURL "http://localhost:${PORT}/" \
|
||||
--appendPort=false
|
||||
|
|
|
|||
|
|
@ -53,11 +53,6 @@ enableGitInfo = true
|
|||
name = "Sitemap"
|
||||
url = "/sitemap"
|
||||
weight = 2
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "resume"
|
||||
name = "Resume"
|
||||
url = "/resume/resume_jm_tremblay_latest.pdf"
|
||||
weight = 3
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "software"
|
||||
name = "Software"
|
||||
|
|
|
|||
Loading…
Reference in a new issue