Files
personalblog/.gitea/workflows/build-deploy.yml
ghislainl ea2e510e17
All checks were successful
Build and Deploy Hugo Blog / build (push) Successful in 5m0s
Initial commit: Hugo blog with PaperMod theme
2025-12-19 22:23:05 +01:00

40 lines
808 B
YAML

name: Build and Deploy Hugo Blog
on:
push:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build site
run: hugo --minify
- name: Deploy to hosting
run: |
# À adapter selon votre hébergement
# Exemple avec rsync ou autre solution
echo "Deploy step"