-
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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.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' }}