Files
HacktivityLabSheets/.github/workflows/deploy.yml
Z. Cliffe Schreuders 0566a6deef 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.
2025-09-23 12:54:59 +01:00

54 lines
1.1 KiB
YAML

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