-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1003 Bytes
/
build.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 and Deploy Docs
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js and dependencies
uses: actions/setup-node@v2
with:
node-version: '14.x'
- run: npm install
- name: Build and bundle JavaScript code
run: npm run build-docs
- name: Install Ruby and Jekyll
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install Bundler
run: |
sudo gem install bundler
- name: Install Jekyll dependencies
run: |
cd docs
bundle config set path 'vendor/bundle'
bundle install
- name: Build Jekyll site
run: |
cd docs
bundle exec jekyll build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
enable_jekyll: true