Skip to content

Commit 454c559

Browse files
authored
Create jekyll.yml (#5)
1 parent c4ae7f4 commit 454c559

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: GitHub Pages Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or your default branch name
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
github-pages:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v2
18+
19+
- name: Setup Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: 2.7 # You can change this to your desired Ruby version
23+
24+
- name: Install Dependencies
25+
run: |
26+
gem install bundler
27+
bundle install
28+
29+
- name: Build Jekyll Site
30+
run: bundle exec jekyll build
31+
32+
- name: Deploy to GitHub Pages
33+
uses: peaceiris/actions-gh-pages@v3
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./_site

0 commit comments

Comments
 (0)