Skip to content

chore: Fix deploy job #56

chore: Fix deploy job

chore: Fix deploy job #56

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.114.0'
extended: false
- name: Build
run: |
export BASE_URL="https://koooge.github.io/hugo-theme-geppaku/"
hugo --gc --minify --configDir ./exampleSite/config --themesDir ./ --layoutDir ./layouts --config config/test/config.toml --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