mirror of
https://github.com/cliffe/HacktivityLabSheets.git
synced 2026-02-21 11:18:09 +00:00
- Changed the permalink structure in the configuration to use 'categories' instead of 'category' for lab URLs. - Downgraded Jekyll version in the Gemfile from 4.3.0 to 3.10.0 to ensure compatibility with existing plugins and workflows. - Updated GitHub Actions workflow to use Ruby 3.0 and streamlined the build command for Jekyll. - Modified lab markdown files to reflect the new 'categories' field for better organization.
58 lines
1.1 KiB
YAML
58 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.0'
|
|
bundler-cache: true
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
bundle install
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v4
|
|
|
|
- name: Build with Jekyll
|
|
run: |
|
|
bundle exec jekyll build
|
|
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
|