Skip to content

Commit 699355f

Browse files
committed
feat: add GitHub Actions workflow for Jekyll site deployment
1 parent b8a2e5a commit 699355f

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/on-merge.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Github Pages Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: 3.1 # Specify the Ruby version compatible with Jekyll
20+
bundler-cache: true
21+
22+
- name: Install dependencies
23+
run: bundle install
24+
25+
- name: Build Jekyll site
26+
run: bundle exec jekyll build --destination dist
27+
28+
- name: Upload build artifacts
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: jekyll-build
32+
path: dist

0 commit comments

Comments
 (0)