-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.75 KB
/
deploy-ohif-v3-upstream-with-add-ons.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
name: ohif/deploy-v3-upstream-with-add-ons
on:
workflow_dispatch:
jobs:
link_build_and_deploy:
runs-on: ubuntu-latest
container:
image: node:20
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Clone and install OHIF dependencies
run: |
git clone https://github.com/OHIF/Viewers.git
cd Viewers
yarn install --frozen-lockfile
- name: Clone and install ohif-gcp-mode dependencies
run: |
git clone https://github.com/ImagingDataCommons/ohif-gcp-mode.git
cd ohif-gcp-mode
yarn install --frozen-lockfile
- name: Clone and install ohif-gcp-extension dependencies
run: |
git clone https://github.com/ImagingDataCommons/ohif-gcp-extension.git
cd ohif-gcp-extension
yarn install --frozen-lockfile
- name: Link ohif-gcp-mode and ohif-gcp-extension to OHIF and build
run: |
cd Viewers
wget -O ./firebase.json "${{ vars.OHIF_FIREBASE_JSON_URL }}"
wget -O ./platform/app/public/config/test.js "${{ vars.OHIF_CONFIG_JS_URL }}"
yarn cli link-mode ../ohif-gcp-mode
yarn cli link-extension ../ohif-gcp-extension
PUBLIC_URL=/ APP_CONFIG=config/test.js yarn build
- name: Deploy to Firebase
uses: FirebaseExtended/[email protected]
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
expires: 5d
projectId: "${{ vars.FIREBASE_PROJECT_ID }}"
entryPoint: ./Viewers
channelId: live
# channelId: # 'pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}'