Skip to content

Merge pull request #22 from wiserfirst/dependabot/bundler/nokogiri-1.… #23

Merge pull request #22 from wiserfirst/dependabot/bundler/nokogiri-1.…

Merge pull request #22 from wiserfirst/dependabot/bundler/nokogiri-1.… #23

Workflow file for this run

name: Build and Deploy to Netlify
on:
push:
branches:
- develop
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
# speeds up installation of htmlproofer
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
bundler-cache: true
- name: Set up Node JS
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Global npm packages
run: npm install --global sass-lint markdownlint-cli
- name: Build Jekyll site
run: JEKYLL_ENV=production bundle exec jekyll build
- name: Run markdownlint
run: markdownlint _posts _drafts _pages README.md
- name: Deploy to Netlify
if: success()
uses: South-Paw/action-netlify-cli@v2
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --prod --dir _site