-
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.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' }}