hugo-theme-relearn/.github/actions/build_site/action.yaml
Sören Weber f20760ba50
build: don't minimize official documentation
show the page the way it looks in development - with nice indention
2022-02-07 22:42:18 +01:00

14 lines
533 B
YAML

name: Build site
description: Builds the Hugo exampleSite for later deploy on GitHub-Pages
runs:
using: composite
steps:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Build site
shell: bash
run: |
hugo --source ${GITHUB_WORKSPACE}/exampleSite --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --gc --baseURL https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ --theme ${GITHUB_WORKSPACE}