Deploy preview site to review pull requests #5

Merged
btlogy merged 32 commits from 1.site-preview into main 2024-05-24 11:08:07 +00:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 6081093f2d - Show all commits

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"