Skip to content

Add .jekyll-cache to .gitignore, remove Gemfile.lock, update _config.… #7

Add .jekyll-cache to .gitignore, remove Gemfile.lock, update _config.…

Add .jekyll-cache to .gitignore, remove Gemfile.lock, update _config.… #7

Workflow file for this run

name: Deploy Jekyll with GitHub Pages dependencies preinstalled
on:
push:
branches:
- master
paths:
- .github/workflows/docs.yml
- docs/**/*
pull_request:
branches:
- master
types:
- opened
- reopened
- synchronize
paths:
- .github/workflows/docs.yml
- docs/**/*
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout Source
uses: actions/checkout@v6
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
working-directory: ./docs
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/_site
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4