-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (58 loc) · 2.07 KB
/
github-standalone-release.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
name: github-standalone-release
on:
push:
tags:
- "*"
jobs:
build:
name: Release standalone zen FHIR profiles with terminology bundles
runs-on: self-hosted
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: 'recursive'
- name: Setup Babashka
uses: turtlequeue/[email protected]
with:
babashka-version: 0.8.156
- name: Set tag env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- uses: actions/[email protected]
with:
distribution: "temurin"
java-version: "18"
- uses: DeLaGuardo/[email protected]
with:
cli: 1.11.1.1155
- run: bb init
name: Install npm FHIR packages
- run: bb init-r3
name: Install npm R3 packages
- run: bb init-r3-nictiz-hack
name: Install specific version of NICTIZ package, tmp hack
- name: Build jar
run: bb build
- name: Build standalone R3
run: bb build-stanadlone-projects "r3/node_modules/" "zrc/standalone_projects/"
- name: Build R3-nictiz-hack
run: bb build-r3-nictiz-hack
- name: Build standalone R4B
run: bb build-stanadlone-projects "r4b/" "zrc/standalone_projects/"
- name: cleanup r4.terminology from r4b to avoid clashes
run: rm -rf zrc/standalone_projects/hl7-terminology-r4.zip
- name: Build standalone projects
run: bb build-standalone-zen-profiles-all-versions "node_modules/" "zrc/standalone_projects/"
- name: Build standalone R5
run: bb build-stanadlone-projects "r5/" "zrc/standalone_projects/"
- name: Release
uses: softprops/action-gh-release@v1
with:
append_body: true
files: target/zen-fhir-${{ env.RELEASE_VERSION }}-standalone.jar, zrc/standalone_projects/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}