-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1.01 KB
/
build-deploy.yml
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
38
name: Build and Deploy
on:
push:
branches:
- main
- 39-pr-preview-with-github-pages
workflow_dispatch: # allows manual trigger
permissions:
contents: write
concurrency: ci-${{ github.ref }}
jobs:
deploy:
name: Build and deploy website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.5' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Build static site # creates website in folder _site
run: bundle exec jekyll build
- name: Deploy website
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site
branch: gh-pages
clean-exclude: pr-preview # used for preview of PRs
force: false