-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 2.29 KB
/
ig-publish.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
name: ImplementationGuide Publisher
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main or master branch
push:
branches:
- main
- master
- staging
pull_request:
branches:
- main
- master
- staging
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run-publisher:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# checkout repository with fhir package snapshots
- name: Checkout packages repository
uses: actions/checkout@v2
with:
repository: vision-zero-oncology/fhir-packages-gold
path: fhir-packages-gold
lfs: true
- name: Create symbolic link to package directory
uses: docker://hl7fhir/ig-publisher-base:latest
with:
# Get the latest publisher - don't run the batch script but run the line directly
args: ln -s ./fhir-packages-gold/packages packages
- name: Update the image to the latest publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
# Get the latest publisher - don't run the batch script but run the line directly
args: curl -L https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -o ./input-cache/publisher.jar --create-dirs
# args: curl -L https://github.com/HL7/fhir-ig-publisher/releases/download/1.1.83/publisher.jar -o ./input-cache/publisher.jar --create-dirs
- name: Run the IG publisher
uses: docker://hl7fhir/ig-publisher-base:latest
with:
# Workaround for inability of sushi to generate snapshots: untar packages first (using script)
# Run the publisher - don't run the batch script but run the line directly
args: ./packages/run_ig_publisher.sh
# deploy implementation guide to github pages
- name: Deploy
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output