Skip to content

Add debug print

Add debug print #92

name: github-zen-packages-release
on:
push:
tags:
- "*"
jobs:
build:
name: Release zen FHIR Github packages with profiles and FTR
runs-on: self-hosted
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: 'recursive'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
with:
version: '418.0.0'
- name: 'Build service-account.json'
env:
FTR_GCP_BUCKET_SERVICE_ACCOUNT: ${{ secrets.FTR_GCP_BUCKET_SERVICE_ACCOUNT }}
run: echo $FTR_GCP_BUCKET_SERVICE_ACCOUNT > $HOME/service-account.json
- name: 'Gcloud auth'
run: gcloud auth activate-service-account --key-file=$HOME/service-account.json
- 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: git config --global user.email "[email protected]" && git config --global user.name "zen-lang/fhir GH Action — release"
name: Set up git config
- run: bb zen-profiles-packages "release.txt" "r4b/" "zen-packages/"
name: Generate & release npm r4b core zen package
env:
ZEN_FHIR_RELEASE_GITHUB_USER: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_USER }}
ZEN_FHIR_RELEASE_GITHUB_TOKEN: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_TOKEN }}
ZEN_FHIR_RELEASE_GITHUB_ORG: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_ORG }}
- name: cleanup r4.terminology from r4b to avoid clashes
run: rm -rf zen-packages/hl7-terminology-r4
- run: bb zen-profiles-packages "release.txt" "us-core-610/" "zen-packages/"
name: Generate & release us-core610
env:
ZEN_FHIR_RELEASE_GITHUB_USER: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_USER }}
ZEN_FHIR_RELEASE_GITHUB_TOKEN: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_TOKEN }}
ZEN_FHIR_RELEASE_GITHUB_ORG: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_ORG }}
- name: cleanup after us-core601 build
run: rm -rf zen-packages/hl7.fhir.r4.core zen-packages/hl7.fhir.uv.bulkdata zen-packages/us.nlm.vsac zen-packages/hl7.fhir.uv.sdc
- run: bb zen-profiles-packages "release.txt" "node_modules/" "zen-packages/"
name: Generate & release npm Zen packages
env:
ZEN_FHIR_RELEASE_GITHUB_USER: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_USER }}
ZEN_FHIR_RELEASE_GITHUB_TOKEN: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_TOKEN }}
ZEN_FHIR_RELEASE_GITHUB_ORG: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_ORG }}
- run: bb zen-profiles-packages "release.txt" "r5/" "zen-packages/" nil nil nil nil "resources/r5-blacklist.edn"
name: Generate & release npm r5 core zen package
env:
ZEN_FHIR_RELEASE_GITHUB_USER: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_USER }}
ZEN_FHIR_RELEASE_GITHUB_TOKEN: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_TOKEN }}
ZEN_FHIR_RELEASE_GITHUB_ORG: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_ORG }}
- name: Release
uses: softprops/action-gh-release@v1
with:
append_body: true
body_path: "release.txt"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}