Merge pull request #233 from onurergunay/main #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MrGreen-JekyllTheme jekyll build test | |
# on a push or pull request is made on the main branch | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '.github/**' | |
- '.editorconfig' | |
- '.gitattributes' | |
- '.gitignore' | |
- 'LICENSE.txt' | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '.github/**' | |
- '.editorconfig' | |
- '.gitattributes' | |
- '.gitignore' | |
- 'LICENSE.txt' | |
branches: | |
- main | |
jobs: | |
build-test: | |
if: ${{ github.repository == 'MrGreensWorkshop/MrGreen-JekyllTheme' }} | |
runs-on: ubuntu-latest | |
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | |
BUNDLE_GEMFILE: ${{ github.workspace }}/Gemfile | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' # Not needed with a .ruby-version file | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Build test | |
run: | | |
JEKYLL_ENV=production bundle exec jekyll build --safe | |
echo "Completed." | |
shell: bash |