2021-10-23 11:56:11 +02:00
|
|
|
name: Build site
|
2025-01-29 23:30:53 +01:00
|
|
|
description: Builds the docs for later deploy on GitHub-Pages
|
2021-10-23 11:56:11 +02:00
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- name: Setup Hugo
|
2024-04-12 17:23:31 +02:00
|
|
|
uses: peaceiris/actions-hugo@v3
|
2021-10-23 11:56:11 +02:00
|
|
|
with:
|
|
|
|
hugo-version: 'latest'
|
|
|
|
|
2025-02-13 22:26:46 +01:00
|
|
|
- name: Build docs
|
2021-10-23 11:56:11 +02:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2025-01-29 23:30:53 +01:00
|
|
|
hugo --source ${GITHUB_WORKSPACE}/docs --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --environment github --theme ${GITHUB_WORKSPACE}
|
2025-02-13 22:26:46 +01:00
|
|
|
|
|
|
|
- name: Build exampleSite
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2025-02-13 22:34:47 +01:00
|
|
|
hugo --source ${GITHUB_WORKSPACE}/exampleSite --destination ${GITHUB_WORKSPACE}/../public/exampleSite --environment github --theme ${GITHUB_WORKSPACE}
|