Skip to content

Commit

Permalink
✨ feat: baseURL changed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidaparicio committed Oct 22, 2022
1 parent aa634bf commit 77fe83f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
extended: true # need the Hugo extended version to build SCSS/SASS.

- name: Build
run: hugo --cleanDestinationDir --minify --baseURL https://davidaparicio.github.io/website/
run: hugo --cleanDestinationDir --minify --baseURL "" #https://davidaparicio.github.io

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
22 changes: 5 additions & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
image:
name: klakegg/hugo:edge-ext-alpine
entrypoint: [""] #https://github.com/klakegg/docker-hugo/issues/13
image: registry.gitlab.com/pages/hugo/hugo_extended:latest

variables:
GIT_SUBMODULE_STRATEGY: recursive
#HUGO_VERSION: "0.75.1"
HUGO_ENABLEGITINFO: "true"
HUGO_ENV: "production"
BASE_URL: "https://davidaparicio.gitlab.io/website"

pages:
script:
- hugo --cleanDestinationDir --minify --baseURL $BASE_URL
- hugo
artifacts:
paths:
- public
only:
- master

# - hugo --cleanDestinationDir --minify --debug --baseURL $BASE_URL
# test:
# script:
# - hugo
# except:
# - master
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

# https://gohugo.io/hosting-and-deployment/hosting-on-gitlab/#configure-gitlab-cicd
# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
# https://discourse.gohugo.io/t/hugo-starter-error/28550/2
#image: registry.gitlab.com/pages/hugo:latest
Expand Down
2 changes: 1 addition & 1 deletion config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/

title: David Aparicio # Website name
baseurl: 'https://davidaparicio.gitlab.io/website/' # Website URL
baseurl: '' # Website URL
#'https://davidaparicio.gitlab.io/website/'
#'https://github.com/davidaparicio/website'
#'https://david.aparicio.eu'
Expand Down

0 comments on commit 77fe83f

Please sign in to comment.