-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 861 Bytes
/
jekyll.yml
File metadata and controls
36 lines (30 loc) · 861 Bytes
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
name: Build and deploy Jekyll site
on:
push:
branches: [ main ] # Set to your default branch
pull_request:
branches: [ main ]
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup Ruby, Jekyll and build
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2' # Set to your Ruby version
- name: Build and test Jekyll site
run: |
gem install bundler
bundle install
bundle exec jekyll build
# Optional step for GitHub Pages deployment
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site # Set to your Jekyll output directory