mirror of
https://github.com/cliffe/HacktivityLabSheets.git
synced 2026-02-20 13:50:46 +00:00
Add jekyll-seo-tag plugin and update Gemfile for additional dependencies
- Included the jekyll-seo-tag plugin in the configuration for improved SEO capabilities. - Updated the Gemfile to add jekyll-seo-tag and other necessary gems for enhanced functionality. - Created a new GitHub Actions workflow for deploying the Jekyll site to GitHub Pages.
This commit is contained in:
53
.github/workflows/deploy.yml
vendored
Normal file
53
.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
name: Deploy Jekyll site to Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.2'
|
||||
bundler-cache: true
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v4
|
||||
|
||||
- name: Build with Jekyll
|
||||
run: |
|
||||
bundle exec jekyll build --baseurl "${{ steps.page_url.outputs.base_path }}"
|
||||
env:
|
||||
JEKYLL_ENV: production
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: ./_site
|
||||
|
||||
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@v4
|
||||
27
Gemfile
27
Gemfile
@@ -1,12 +1,27 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
# GitHub Pages compatible gems
|
||||
gem 'github-pages', group: :jekyll_plugins
|
||||
# Jekyll and core dependencies
|
||||
gem 'jekyll', '~> 4.3.0'
|
||||
gem 'jekyll-feed', '~> 0.12'
|
||||
gem 'jekyll-sitemap'
|
||||
gem 'jekyll-seo-tag'
|
||||
|
||||
# If you want to use GitHub Pages, uncomment the line below and comment out the jekyll gem above
|
||||
# gem 'github-pages', group: :jekyll_plugins
|
||||
# Markdown processor
|
||||
gem 'kramdown-parser-gfm'
|
||||
|
||||
# For local development, you can use a newer Jekyll version
|
||||
# gem 'jekyll', '~> 4.3.0'
|
||||
# Syntax highlighting
|
||||
gem 'rouge'
|
||||
|
||||
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||
# and associated library.
|
||||
platforms :mingw, :x64_mingw, :mswin, :jruby do
|
||||
gem 'tzinfo', '>= 1', '< 3'
|
||||
gem 'tzinfo-data'
|
||||
end
|
||||
|
||||
# Performance-booster for watching directories on Windows
|
||||
gem 'wdm', '~> 0.1.1', :platforms => [:mingw, :x64_mingw, :mswin]
|
||||
|
||||
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
|
||||
# do not have a Java counterpart.
|
||||
gem 'http_parser.rb', '~> 0.6.0', :platforms => [:jruby]
|
||||
@@ -35,6 +35,7 @@ defaults:
|
||||
plugins:
|
||||
- jekyll-feed
|
||||
- jekyll-sitemap
|
||||
- jekyll-seo-tag
|
||||
|
||||
# Exclude files from processing
|
||||
exclude:
|
||||
|
||||
Reference in New Issue
Block a user