forked from JasperFx/lamar
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 841 Bytes
/
docs.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
name: Publish docs
on: [workflow_dispatch]
jobs:
publish_docs_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install .NET Core 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Build & Deploy docs
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: ./build.sh --no-color publish-docs-gh-actions
- name: Generate Algolia DocSearch index
uses: darrenjennings/algolia-docsearch-action@master
with:
algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }}
algolia_api_key: ${{ secrets.ALGOLIA_API_KEY }}
file: 'docs/.vitepress/algolia-config.json'