Skip to content

Commit 374d2db

Browse files
committed
Add GitHub Actions workflow for Simplifier publishing
1 parent 1c1f8c9 commit 374d2db

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to Simplifier
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'input/fsh/**'
9+
- 'sushi-config.yaml'
10+
- '.github/workflows/publish-to-simplifier.yml'
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '18'
23+
24+
- name: Install SUSHI
25+
run: npm install -g fsh-sushi
26+
27+
- name: Run SUSHI
28+
run: sushi .
29+
30+
- name: Publish to Simplifier
31+
uses: HL7/fhir-shorthand@master
32+
with:
33+
SIMPLIFIER_USERNAME: ${{ secrets.SIMPLIFIER_USERNAME }}
34+
SIMPLIFIER_PASSWORD: ${{ secrets.SIMPLIFIER_PASSWORD }}
35+
SIMPLIFIER_PROJECT: Syrian-Core-Profiles
36+
FSH_FOLDER: input/fsh
37+
OUTPUT_FOLDER: fsh-generated/resources
38+
39+
- name: Upload build artifacts
40+
uses: actions/upload-artifact@v4
41+
if: always()
42+
with:
43+
name: fhir-profiles
44+
path: fsh-generated/resources/
45+
retention-days: 30

0 commit comments

Comments
 (0)