-
Notifications
You must be signed in to change notification settings - Fork 2
85 lines (66 loc) · 2.76 KB
/
gh-pages.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: ghpages
on:
workflow_call:
workflow_dispatch:
# The following jobs are equal for all IGs and can be moved to a common composite-action if 'uses'-support is added, see:
# https://github.com/actions/runner/blob/main/docs/adrs/1144-composite-actions.md
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Install .NET runtime
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x.x'
# Install Java runtime (only needed if you want to run the offical HL7 Java validator)
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
- name : firely
run : dotnet tool install --global Firely.Terminal --version 3.0.0
- name: Check Firely Terminal Version
run: |
CHECK_FIRELY_TERMINAL_VERSION=$(fhir -v | tr '\n' ' ') # Print everything in a single line
echo "FIRELY_TERMINAL_VERSION: $CHECK_FIRELY_TERMINAL_VERSION"
- name: Run bake ans.annuaire.fhir.r4
run: |
fhir install ans.annuaire.fhir.r4 0.2.0
fhir bake --package ans.annuaire.fhir.r4
- name: Run bake hl7.fhir.fr.core
run: |
fhir install hl7.fhir.fr.core 1.1.0
fhir bake --package hl7.fhir.fr.core
- name: Install modules
run: npm install -g fsh-sushi
- name: Run sushi
run: sushi .
# Downloads the newest version of the IG Publisher, this could probable be cached.
- name: 📥 Download IG Publisher
run: wget -q https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar
- name: Build and test with Rake
run: |
sudo apt-get install ruby-full
sudo gem install jekyll
# Builds the HTML page for the IG.
- name: 🏃♂️ Run IG Publisher
run : java -Xmx8192m -jar publisher.jar -ig .
- name: Get branch names
id: branch-name
uses: tj-actions/[email protected]
- name: show active branches
run: |
echo ig/${{ steps.branch-name.outputs.current_branch }}
# Publishes the HTML page to a seperate branch in order to host it using GitHub-Pages.
# This will overwrite the currently published HTML page.
- name: 🚀 Deploy to GitHub-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
destination_dir: ig/${{ steps.branch-name.outputs.current_branch }}
exclude_assets: '**.zip,**.tgz,**.pack'
commit_message: ' ${{ github.event.head_commit.message }}'