-
Notifications
You must be signed in to change notification settings - Fork 2
100 lines (80 loc) · 3.64 KB
/
github-zen-packages-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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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 }}