Skip to content

chore: Update deploy-github-pages.yml #54

chore: Update deploy-github-pages.yml

chore: Update deploy-github-pages.yml #54

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
working-directory: ./exampleSite
run: |
export BASE_URL="https://koooge.github.io/hugo-theme-geppaku/"
hugo --gc --minify --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: ./exampleSite/public