build: make github environment

This commit is contained in:
Sören Weber 2024-02-24 14:03:23 +01:00
parent 1abe414079
commit 859e76cc85
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 4 additions and 2 deletions

View file

@ -11,4 +11,4 @@ runs:
- 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}
hugo --source ${GITHUB_WORKSPACE}/exampleSite --destination ${GITHUB_WORKSPACE}/../public --cleanDestinationDir --environment github --theme ${GITHUB_WORKSPACE}

View file

@ -6,7 +6,7 @@ baseURL = "https://example.com/"
# required value to serve this page from a webserver AND the file system;
# if you don't want to serve your page from the file system, you can also set this value
# to false
relativeURLs = false # true -> rewrite all site-relative URLs (those with a leading slash) to be relative to the current content
relativeURLs = true # true -> rewrite all site-relative URLs (those with a leading slash) to be relative to the current content
# if you set uglyURLs to false, this theme will append 'index.html' to any page bundle link
# so your site can be also served from the file system; if you don't want that,
# set disableExplicitIndexURLs=true in the [params] section

View file

@ -0,0 +1,2 @@
baseURL = "https://mcshelby.github.io/hugo-theme-relearn/"
relativeURLs = false