-
-
Notifications
You must be signed in to change notification settings - Fork 152
41 lines (30 loc) · 982 Bytes
/
build-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.1
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
# 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/