-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (37 loc) · 996 Bytes
/
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
39
40
41
42
43
44
45
46
name: Build & Deploy Jekyll site
on:
push:
branches:
- main
workflow_dispatch:
permissions: write-all
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
jekyll:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# install ruby
# action already handles gems caches
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.0
bundler-cache: true
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
# build with baseurl pointing to the pages base_path
- name: Build jekyll site
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
# deploy
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
enable_jekyll: true
keep_files: true