add workflow to deploy to pages

This commit is contained in:
Antoine Hoorelbeke 2025-06-28 13:50:15 +02:00
parent 9cd24a96c4
commit af4ec794c2

27
.github/workflows/deploy-to-pages.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.102.3'
- name: Build
run: hugo --minify
- name: Deploy
uses: actions/github-pages@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
directory: public