Skip to content

chore: Set --contentDir for exampleSite #60

chore: Set --contentDir for exampleSite

chore: Set --contentDir for exampleSite #60

name: Deploy to github pages
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.132.2'
extended: false
- name: Build
run: |
export BASE_URL="https://koooge.github.io/hugo-theme-geppaku/"
hugo --gc --minify --configDir ./exampleSite/config --config ./exampleSite/config/test/config.toml --themesDir ./ --layoutDir ./layouts --contentDir ./exampleSite/content --baseURL "${BASE_URL}"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public