-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.11 KB
/
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
name: Build and deploy Jekyll site to GitHub Pages
on:
push:
branches:
- master
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- name: 📂 setup repo
uses: actions/checkout@v2.3.4
with:
submodules: true
- name: 💎 setup ruby
uses: ruby/setup-ruby@v1.61.1
with:
ruby-version: 2.7.2
- name: ⬡ setup node
uses: actions/setup-node@v2.1.4
with:
node-version: '12'
- name: 🔨⬡ install node dependencies
run: npm install
- name: 🔨💎 install ruby dependencies & build site
uses: limjh16/jekyll-action-ts@v2
env:
NODE_ENV: production
JEKYLL_ENV: production
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
with:
enable_cache: false
- name: 🔍 run Algolia indexing
run: ALGOLIA_API_KEY='${{ secrets.ALGOLIA_API_KEY }}' bundle exec jekyll algolia
- name: 🚀 deploy
uses: peaceiris/actions-gh-pages@v3.7.3
with:
github_token: ${{ secrets.JEKYLL_PAT }}
publish_dir: ./_site