-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.75 KB
/
jekyll-github-pages.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
47
48
49
50
51
52
53
54
55
56
57
# based on examples from:
# - https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml
# - https://www.moncefbelyamani.com/making-github-pages-work-with-latest-jekyll/
name: Build and Deploy a Jekyll Site to GitHub Pages
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
jekyll:
runs-on: macos-latest
steps:
- name: 📂 Checkout
uses: actions/checkout@v2
# include the lines below if you are using jekyll-last-modified-at
# or if you would otherwise need to fetch the full commit history
# however this may be very slow for large repositories!
# with:
# fetch-depth: '0'
- name: 💎 Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: 🔨 Install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
- name: 🚀 Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
# if the repo you are deploying to is <username>.github.io, uncomment the line below.
# if you are including the line below, make sure your source files are NOT in the "main" branch:
# publish_branch: main