-
-
Notifications
You must be signed in to change notification settings - Fork 21
43 lines (41 loc) · 1.19 KB
/
profile.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
42
43
on:
push:
branches:
- master
- main
workflow_dispatch:
name: jekyll-profile
jobs:
jekyll-profile:
runs-on: ubuntu-latest
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
working-directory: 'docs'
- name: Run jekyll-profile
run: |
# Run Jekyll Profile
cd docs
# Bundle install
echo "::group::Jekyll folder"
echo "Building Jekyll from: $PWD"
echo "::endgroup::"
# Updating Bundle
echo "::group::Bundle Update"
bundle update
echo "::endgroup::"
# Jekyll Profile
echo "::group::Jekyll Profile"
bundle exec jekyll build --incremental --profile >> $GITHUB_STEP_SUMMARY
# Nice formatting
sed -i 's/+-/|/g' $GITHUB_STEP_SUMMARY
sed -i 's/-+/|/g' $GITHUB_STEP_SUMMARY
sed -i 's/Build Process Summary/## Build Process Summary/g' $GITHUB_STEP_SUMMARY
sed -i 's/Site Render Stats/## Site Render Stats/g' $GITHUB_STEP_SUMMARY
echo "::endgroup::"
shell: bash