Skip to content

Commit c96abf1

Browse files
authored
Create jekyll.yml
1 parent 35fec0f commit c96abf1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/jekyll.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Deploy Jekyll Site
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
permissions: write-all
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: '3.0'
23+
bundler-cache: true
24+
25+
- name: Install dependencies
26+
run: bundle install
27+
28+
- name: Build site
29+
run: bundle exec jekyll build
30+
31+
- name: Deploy to GitHub Pages
32+
uses: JamesIves/github-pages-deploy-action@v4
33+
if: success() && github.event_name != 'pull_request'
34+
with:
35+
folder: _site
36+
branch: gh-pages

0 commit comments

Comments
 (0)