-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (41 loc) · 1.46 KB
/
doc.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
name: Build and publish doc
on:
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
tags:
description: "Test scenario tags"
required: false
env:
CI: false
jobs:
doc-publish:
runs-on: [self-hosted, Linux]
steps:
- name: Basic info
run: |
echo "Build for ${{ github.ref }} branch in ${{ github.repository }} repository."
echo "Job triggered by ${{ github.event_name }}, on self-hosted ${{ runner.os }}."
echo "Log level: ${{ github.event.inputs.logLevel }}"
echo "Tags: ${{ github.event.inputs.tags }}"
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build sphinx
run: |
chmod 755 cli
./cli doc --build latexpdf
- name: Build doc
run: ./cli doc --build vitepress
- name: Commit dist.zip
uses: EndBug/add-and-commit@v9
with:
message: "update dist.zip for effprop ${{ github.event.inputs.tags }}"
add: "doc/website/.vitepress/dist.zip"
committer_name: GitHub Actions
- name: Trigger publish
run: ./cli doc --publish