mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-12 08:54:08 +00:00
15 lines
542 B
YAML
15 lines
542 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 --minify --source ${GITHUB_WORKSPACE}/exampleSite --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --gc --baseURL https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/ --theme ${GITHUB_WORKSPACE}
|