mirror of
https://github.com/cliffe/HacktivityLabSheets.git
synced 2026-02-21 11:18:09 +00:00
- Upgraded Jekyll from 3.10.0 to 4.3.0 and updated related plugins for enhanced functionality. - Modified the Gemfile to specify versions for kramdown, kramdown-parser-gfm, and rouge. - Updated the GitHub Actions workflow to use Ruby 3.1 and optimized the bundler installation process. - Enhanced the Jekyll build command with version checks for better debugging and visibility.
64 lines
1.5 KiB
YAML
64 lines
1.5 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.1'
|
|
bundler-cache: true
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
gem install bundler --version '~> 2.4'
|
|
bundle config set --local deployment 'true'
|
|
bundle config set --local without 'development test'
|
|
bundle install --jobs 4 --retry 3
|
|
|
|
- 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
|