Deploy preview site to review pull requests #5
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue