-
Notifications
You must be signed in to change notification settings - Fork 14
53 lines (44 loc) · 1.45 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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: github-pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 💎 setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.1
- name: Build Jekyll site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
- name: Run Antora
uses: kameshsampath/antora-site-action@master
with:
antora_playbook: playbook.yml
site_sources_path: 'docs-site'
- name: Copy antora docs site to jekyll web site
run: |
mkdir -p ./_site/documentation
cp -rfv ./docs-site/build/site/* ./_site/documentation
- name: 🚀 deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
- name: Read search configuration
id: config
run: echo ::set-output name=config::$(cat algolia-config.json)
- name: Update search index
uses: darrenjennings/algolia-docsearch-action@master
with:
algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }}
algolia_api_key: ${{ secrets.ALGOLIA_ADMIN_KEY }}
file: 'algolia-config.json'