-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (31 loc) · 1.03 KB
/
build-docs.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
name: build-docs
on:
push:
branches:
- master
pull_request:
branches:
- master
# Declare default permissions as read only.
permissions: read-all
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
pages: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: 3.x
- run: pip install mkdocs-material==9.*
- run: mkdocs build --strict --verbose --site-dir=./site
# - name: build FHIR IG
# uses: ghcr.io/miracum/ig-build-tools:v1.0.74@sha256:c33b9cef9076d91f5caa5f4229b0b3591ec8edbfe9986a40b981b1ee6394287c
# working-directory: fhir/ig
# run: java -jar /usr/local/bin/publisher.jar -ig ig.ini
# - name: copy FHIR IG output into mkdocs site
# run: cp -r fhir/ig/output/ site/fhir
- run: mkdocs gh-deploy --force
if: ${{ github.event_name != 'pull_request' }}