-
-
Notifications
You must be signed in to change notification settings - Fork 92
49 lines (41 loc) · 1.24 KB
/
user-guide.yaml
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
name: User Guide
on:
push: { "branches": [ "master" ] }
pull_request: { "branches": [ "master" ] }
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout repository
uses: actions/[email protected]
with:
submodules: true
- name: 🧰 Setup Node.js
uses: actions/[email protected]
with:
node-version: lts/Gallium
- name: 🧰 Download Hugo
run: |
curl -L https://github.com/gohugoio/hugo/releases/download/v0.76.5/hugo_extended_0.76.5_Linux-64bit.tar.gz | tar xz
- name: 🔨 Build TypeScript Doc
working-directory: clients/TypeScript
run: |
yarn install --frozen-lockfile --non-interactive --logevel=error
yarn build
yarn docs
- name: 📸 Build Static Website
shell: bash
working-directory: docs
run: |
../hugo -t learn --minify
echo "ogmios.dev" > public/CNAME
- name: 📘 Publish Artifacts
if: matrix.os == 'ubuntu-latest' && github.event_name == 'push'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/public
enable_jekyll: false