-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.52 KB
/
sushi-and-publisher.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build and Deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install and run sushi
run: |
npm install -g fsh-sushi
sushi build
# Increate Java heap size for publisher
- name: Set Java heap size
run: export _JAVA_OPTIONS="$JAVA_TOOL_OPTIONS -Xmx5G"
# Using this action: https://github.com/qligier/fhir-ig-action
- name: Generate Implementation Guide (IG)
# uses: qligier/fhir-ig-action@v0.3.0
uses: mtnlotus/fhir-ig-action@v0.3.1
with:
ig-publisher: "latest"
sushi: "latest"
# - name: Install publisher
# run: |
# wget https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -P ./input-cache
# - name: Update Publisher executable
# run: bash _updatePublisher.sh --force --yes
# TODO: I always get an error with this, cannot find jekyll
# - name: Generate Implementation Guide (IG)
# run: bash _genonce.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output