forked from daattali/beautiful-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 844 Bytes
/
ci.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
name: Beautiful Jekyll CI
on: [push, pull_request]
jobs:
build:
name: Build Jekyll
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install dependencies
run: bundle install && bundle exec appraisal install
- name: Setup Pages
id: configure-pages
uses: actions/configure-pages@v5
- name: Setup CI config
run: |
echo "---" > _config_ci.yml
echo "baseurl: ${{ steps.configure-pages.outputs.base_path }}" >> _config_ci.yml
- name: Build site
env:
JEKYLL_ENV: production
run: bundle exec appraisal jekyll build --future --config _config_ci.yml,_config.yml
- name: Upload artifact
uses: actions/upload-pages-artifact@v3