Skip to content

Simplify Jekyll configuration to fix deployment issues #3

Simplify Jekyll configuration to fix deployment issues

Simplify Jekyll configuration to fix deployment issues #3

Workflow file for this run

# GitHub Actions workflow for deploying Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages
on:
# Runs on pushes to the main branch
push:
branches: ["main"]
# Allows manual triggering from the Actions tab
workflow_dispatch:
# Sets permissions for GitHub token to deploy to Pages
permissions:
contents: read
pages: write
id-token: write
# Ensures only one deployment runs at a time
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
cache-version: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: bundle install
- name: Build site with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload build artifacts
uses: actions/upload-pages-artifact@v2
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2