Overwrite baseurl for preview
Jekyll / jekyll (pull_request) Failing after 20s
Details
Jekyll / jekyll (pull_request) Failing after 20s
Details
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
parent
c3255a0018
commit
6081093f2d
|
@ -44,6 +44,10 @@ jobs:
|
||||||
- name: Build Jekyll site
|
- name: Build Jekyll site
|
||||||
id: build_site
|
id: build_site
|
||||||
run: |
|
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 \
|
docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \
|
||||||
jekyll build --verbose
|
jekyll build --verbose
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
|
@ -5,7 +5,7 @@ author_profile: false
|
||||||
header:
|
header:
|
||||||
overlay_color: "#000"
|
overlay_color: "#000"
|
||||||
overlay_filter: "0.4"
|
overlay_filter: "0.4"
|
||||||
overlay_image: /assets/images/overlay.jpg
|
overlay_image: {{ /assets/images/overlay.jpg | relative_url }}
|
||||||
actions:
|
actions:
|
||||||
- label: "Download"
|
- label: "Download"
|
||||||
url: "https://tahoe-lafs.org/downloads"
|
url: "https://tahoe-lafs.org/downloads"
|
||||||
|
|
Loading…
Reference in New Issue