forked from sandstorm-io/sandstorm
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 831 Bytes
/
Copy pathdoc-ci.yml
File metadata and controls
36 lines (34 loc) · 831 Bytes
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
name: doc-ci
on:
push:
paths:
- 'mkdocs.yml'
- 'docs/**'
pull_request:
paths:
- 'mkdocs.yml'
- 'docs/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git virtualenv
virtualenv tmp/docs-virtualenv
tmp/docs-virtualenv/bin/pip install -r docs/requirements.txt
- name: build docs
run: |
export PATH=$PWD/tmp/docs-virtualenv/bin:$PATH
mkdir docbuild
bash -x docs/generate.sh -d docbuild
tar cvf docbuild.tar docbuild
- name: upload docbuild.tar
if: always()
uses: actions/upload-artifact@v4
with:
name: docbuild.tar
path: docbuild.tar