Skip to content

GitHub Pages

GitHub Pages #2267

name: GitHub Pages
on:
push:
branches: [main]
pull_request:
schedule:
- cron: '0 3 * * *'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.71.1'
- name: Build
run: hugo --minify --buildFuture
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: public