-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.19 KB
/
ci.yml
File metadata and controls
50 lines (40 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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.4.1
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