hugo-theme-relearn/.github/actions/build_site/action.yaml

15 lines
453 B
YAML
Raw Normal View History

2021-10-23 09:56:11 +00:00
name: Build site
description: Builds the Hugo exampleSite for later deploy on GitHub-Pages
runs:
using: composite
steps:
- name: Setup Hugo
2024-04-12 15:23:31 +00:00
uses: peaceiris/actions-hugo@v3
2021-10-23 09:56:11 +00:00
with:
hugo-version: 'latest'
- name: Build site
shell: bash
run: |
2024-02-24 13:03:23 +00:00
hugo --source ${GITHUB_WORKSPACE}/exampleSite --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --environment github --theme ${GITHUB_WORKSPACE}