initial commit
This commit is contained in:
19
themes/hugo-theme-relearn/.github/actions/build_site/action.yaml
vendored
Normal file
19
themes/hugo-theme-relearn/.github/actions/build_site/action.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Build site
|
||||
description: Builds the docs for later deploy on GitHub-Pages
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
|
||||
- name: Build docs
|
||||
shell: bash
|
||||
run: |
|
||||
hugo --source ${GITHUB_WORKSPACE}/docs --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --environment github --theme ${GITHUB_WORKSPACE}
|
||||
|
||||
- name: Build exampleSite
|
||||
shell: bash
|
||||
run: |
|
||||
hugo --source ${GITHUB_WORKSPACE}/exampleSite --destination ${GITHUB_WORKSPACE}/../public/exampleSite --environment github --theme ${GITHUB_WORKSPACE}
|
||||
Reference in New Issue
Block a user