forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_deploy.yml
More file actions
37 lines (31 loc) · 915 Bytes
/
_deploy.yml
File metadata and controls
37 lines (31 loc) · 915 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
37
name: Build and Deploy Jekyll Site
on:
push:
branches:
- main # Change if your default branch is different
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Check out your repo
- name: Checkout repository
uses: actions/checkout@v4
# Step 2: Set up Ruby (latest stable)
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2 # compatible with Jekyll 4.x
# Step 3: Install dependencies
- name: Install gems
run: |
gem install bundler
bundle install
# Step 4: Build the site
- name: Build Jekyll site
run: bundle exec jekyll build
# Step 5: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site