add new post for bug in OTP #21
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: | |
# 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 |