-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (34 loc) · 953 Bytes
/
docs-pr.yml
File metadata and controls
36 lines (34 loc) · 953 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
# Copyright Contributors to the Shapeshifter project
#
# SPDX-License-Identifier: Apache-2.0
name: docs-pr
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # checkout branch history required to update
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- name: Install Poetry and dependencies
run: |
pip install poetry
poetry install --no-interaction --no-root
- name: Create local documentation build
run: poetry run mkdocs build
env:
ENABLE_PDF_EXPORT: 1
- name: Archive reports
uses: actions/upload-artifact@v4
with:
name: Shapeshifter documentation build
path: site/