Deploy preview site to review pull requests #5
|
@ -48,7 +48,7 @@ jobs:
|
|||
if [ "${{ gitea.event_name }}" = 'pull_request' ]; then
|
||||
echo "Overwriting baseurl for pull_request ${{ gitea.event.pull_request.number }}"
|
||||
sed -i -r -e 's/^baseurl:\s*"([^"]*)"/baseurl: "\1\/${{ gitea.event.pull_request.number }}"/' _config.yml
|
||||
grep "baseurl:" _config.yml
|
||||
grep "^baseurl:" _config.yml
|
||||
fi
|
||||
docker-compose run --rm -v "${JOB_CONTAINER_NAME}:/site" -w /site \
|
||||
jekyll build --verbose
|
||||
|
|
Loading…
Reference in New Issue