Some checks failed
Build Site / build (pull_request) Has been cancelled
Forgejo Actions doesn't have all GitHub Actions in its data repository, so we need to reference the full GitHub URLs for actions like peaceiris/actions-hugo and aws-actions/configure-aws-credentials. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
No EOL
697 B
YAML
33 lines
No EOL
697 B
YAML
name: Build Site
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: https://github.com/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: https://github.com/actions/upload-artifact@v4
|
|
with:
|
|
name: hugo-build
|
|
path: public/
|
|
retention-days: 7 |