Overwrite baseurl for preview
Jekyll / jekyll (pull_request) Failing after 20s Details

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
bEn 2024-05-24 12:27:23 +02:00
parent c3255a0018
commit 6081093f2d
2 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,10 @@ jobs:
- name: Build Jekyll site
id: build_site
run: |
# Overwrite the baseurl for previewonly
if [ "${{ gitea.event }}" = 'pull_request' ]; then
sed -i -r -e 's/^baseurl:\s*"([^"]*)"/baseurl: "\1\/${{ gitea.event.pull_request.number }}"/' _config.yml
fi
docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \
jekyll build --verbose
continue-on-error: true

View File

@ -5,7 +5,7 @@ author_profile: false
header:
overlay_color: "#000"
overlay_filter: "0.4"
overlay_image: /assets/images/overlay.jpg
overlay_image: {{ /assets/images/overlay.jpg | relative_url }}
actions:
- label: "Download"
url: "https://tahoe-lafs.org/downloads"