Skip to content

set baseurl in GitHub Actions workflow #17

set baseurl in GitHub Actions workflow

set baseurl in GitHub Actions workflow #17

Workflow file for this run

name: Publish to GitHub Pages
on:
push:
branches: [main, master]
jobs:
jekyll:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Use the GitHub Actions cache to shorten build times and decrease load on servers
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile') }}
restore-keys: ${{ runner.os }}-gems-
# Standard usage
- uses: helaili/jekyll-action@v2
with:
pre_build_commands: |
sed -i "s/^#baseurl: .*/baseurl: \/${{ github.event.repository.name }}/" _config.yml
token: ${{ secrets.GITHUB_TOKEN }}