Files
HacktivityLabSheets/.github/workflows/deploy.yml
Z. Cliffe Schreuders a2edd36b5b Downgrade Gemfile dependencies and update GitHub Actions workflow for compatibility
- Downgraded Jekyll from 4.3.0 to 4.0.0 and kramdown from 2.4 to 2.3 for better compatibility with existing plugins.
- Updated rouge version from 4.0 to 3.26 in the Gemfile.
- Changed Ruby version in the GitHub Actions workflow from 3.1 to 3.0.
- Streamlined the bundler installation process in the workflow for improved efficiency.
2025-09-23 13:50:38 +01:00

63 lines
1.4 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: |
gem install bundler
bundle config set --local path 'vendor/bundle'
bundle install
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
run: |
echo "Ruby version: $(ruby --version)"
echo "Bundler version: $(bundle --version)"
echo "Jekyll version: $(bundle exec jekyll --version)"
bundle exec jekyll build --verbose
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