-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (31 loc) · 1.04 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-24.04
permissions:
contents: write
pages: write
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.12"
- run: pip install -r docs/requirements.txt
- 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' }}