angrymichigander/.forgejo/workflows/build.yml
Derek Slenk b660b9cd5d
All checks were successful
Build Site / build (pull_request) Successful in 1m3s
Downgrade upload-artifact to v3 for GHES compatibility
actions/upload-artifact@v4 is not supported on GHES/Forgejo Actions. Using v3 for compatibility.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-17 14:36:25 -04:00

33 lines
No EOL
659 B
YAML

name: Build Site
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build Hugo site
run: hugo --minify
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: hugo-build
path: public/
retention-days: 7