mirror of
https://github.com/godotengine/godot-website.git
synced 2025-12-31 09:48:43 +03:00
Ruby 3.4 removed several standard library packages, so they have to be installed as gems instead. This also updates Jekyll to use a version that's supported in Ruby 3.4. The minimum required Ruby version is now 3.2.
42 lines
978 B
YAML
42 lines
978 B
YAML
name: 🌌 Test Build
|
|
|
|
on: [pull_request]
|
|
|
|
# Make sure jobs cannot overlap (e.g. one from push and one from schedule).
|
|
concurrency:
|
|
group: pr-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-ci
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build sources from the PR branch
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# Configure the build environment.
|
|
|
|
- name: Install Ruby 3.2
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.2'
|
|
# Runs 'bundle install' and caches installed gems automatically
|
|
bundler-cache: true
|
|
|
|
- name: Install Minify
|
|
run: sudo apt-get update && sudo apt-get install minify
|
|
|
|
# Build the website.
|
|
|
|
- name: Build the static website
|
|
run: bundle exec jekyll build
|
|
|
|
# Upload resulting "_site" directory as artifact
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: site
|
|
path: _site/
|