diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..2a2a122d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build Preview + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + + - name: Build Jekyll site + run: bundle exec jekyll build + env: + JEKYLL_ENV: production diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..3ef36ed5 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,17 @@ +# Netlify configuration for PR deploy previews +# Production hosting is on GitHub Pages — Netlify is used for previews only + +[build] + command = "bundle install && bundle exec jekyll build" + publish = "_site" + +[build.environment] + RUBY_VERSION = "3.2.2" + BUNDLE_PATH = "vendor/bundle" + +# Deploy preview context (PRs) +[context.deploy-preview] + command = "bundle install && bundle exec jekyll build" + +[context.deploy-preview.environment] + JEKYLL_ENV = "development"