File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Jekyll Build
2+ description : Installs Ruby gems and builds Jekyll site
3+ runs :
4+ using : composite
5+ steps :
6+ - name : Cache Gem Dependencies
7+ uses : actions/cache@v4
8+ with :
9+ path : vendor/bundle
10+ key : ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
11+
12+ - name : Install Ruby Gems
13+ shell : bash
14+ run : |
15+ gem install bundler
16+ bundle config set path 'vendor/bundle'
17+ bundle install
18+
19+ - name : Jekyll Build
20+ shell : bash
21+ run : bundle exec jekyll build
Original file line number Diff line number Diff line change 1616 container : ruby:3.2.2-bookworm
1717 steps :
1818 - uses : actions/checkout@v2
19- - uses : actions/cache@v1
20- with :
21- path : vendor/bundle
22- key : ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
23-
24- - name : Install Ruby dependencies.
25- run : |
26- gem install bundler
27- bundle install --path vendor/bundle
2819
29- - name : Build static site with Jekyll.
30- run : bundle exec jekyll build
20+ - uses : ./.github/actions/jekyll-build
3121
3222 - name : Deploy static site to gh-pages branch.
3323 uses : peaceiris/actions-gh-pages@v3
Original file line number Diff line number Diff line change 1+ # GitHub Action for Jekyll
2+ #
3+ # Runs jekyll build on pull requests to verify that they build.
4+
5+ name : Test Build
6+
7+ on :
8+ pull_request :
9+ branches :
10+ - master
11+
12+ jobs :
13+ test :
14+ runs-on : ubuntu-latest
15+ container : ruby:3.2.2-bookworm
16+ steps :
17+ - uses : actions/checkout@v2
18+
19+ - uses : ./.github/actions/jekyll-build
You can’t perform that action at this time.
0 commit comments