install system deps and bump nodejs #28
This file contains hidden or 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: Build and Deploy to Netlify | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
env: | |
NOKOGIRI_USE_SYSTEM_LIBRARIES: true | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libxml2-dev libxslt-dev | |
- 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: 22 | |
- name: Install Global npm packages | |
run: npm install --global 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 |