Skip to content

github-standalone-release #72

github-standalone-release

github-standalone-release #72

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 }}