Skip to content

uu

uu #82

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: false
jobs:
ci:
name: ${{ matrix.ruby-version }} ${{ matrix.friendlyName }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
ruby-version:
- "3.2"
os:
- ubuntu-latest
arch:
- x64
include:
- os: ubuntu-latest
friendlyName: Linux
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup Ruby and install bundler
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install ImageMagick
run: sudo apt-get update && sudo apt-get install -y imagemagick
- name: Compile and run test
run: bundle install
- name: Build with Jekyll
run: |
source $GITHUB_ENV
echo $PATH
bundle exec jekyll build --destination ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: ci
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4