forked from OHIF/Viewers
-
Notifications
You must be signed in to change notification settings - Fork 4
105 lines (93 loc) · 3.57 KB
/
deploy_ghpages.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
101
102
103
104
105
name: Deploy viewer to github pages
on:
push:
branches: [ "gradienthealth/segmentation_mode_sheet_integration" ]
#pull_request:
#branches: [ "main" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Checkout cornerstone3D
uses: actions/checkout@v3
with:
repository: gradienthealth/cornerstone3D-beta
ref: gradienthealth/segmentation_mode_sheet_integration
path: ./cornerstone3D
- name: Build cornerstone3D
run: |
cd ./cornerstone3D
yarn install
yarn build:all
- name: Checkout GradientExtensionsAndModes
uses: actions/checkout@v3
with:
repository: gradienthealth/GradientExtensionsAndModes
ref: gradienthealth/segmentation_mode_sheet_integration
path: ./GradientExtensionsAndModes
#- name: Build GradientExtensionsAndModes
# run: |
# cd ./GradientExtensionsAndModes/extensions/ohif-gradienthealth-extension
# yarn install
# yarn build:package
# cd ./modes/cohort
# yarn install
# yarn build:package
- name: Checkout Viewers
uses: actions/checkout@v3
with:
repository: gradienthealth/Viewers
path: ./Viewers
- name: Link
run: |
cd ./cornerstone3D/packages/adapters/dist
yarn link
cd ../../core/dist
yarn link
cd ../../dicomImageLoader/dist
yarn link
#cd ../../nifti-volume-loader/dist
#yarn link
cd ../../streaming-image-volume-loader/dist
yarn link
cd ../../tools/dist
yarn link
cd ../../../../Viewers
yarn link @cornerstonejs/adapters
yarn link @cornerstonejs/core
yarn link @cornerstonejs/dicom-image-loader
#yarn link @cornerstonejs/nifti-volume-loader
yarn link @cornerstonejs/streaming-image-volume-loader
yarn link @cornerstonejs/tools
yarn install
yarn run cli link-extension ../GradientExtensionsAndModes/extensions/ohif-gradienthealth-extension
yarn run cli link-mode ../GradientExtensionsAndModes/modes/cohort
yarn run cli link-mode ../GradientExtensionsAndModes/modes/breast-density-mode
yarn run build:gradient
- name: Checkout gh page
uses: actions/checkout@v3
with:
repository: gradienthealth/gradienthealth.github.io
path: ./gradienthealth.github.io
token: ${{ secrets.GH_DEPLOY_TOKEN }}
- name: Copy
run: |
mv ./gradienthealth.github.io/.git /tmp/
rm -r ./gradienthealth.github.io
cp -r ./Viewers/platform/app/dist/ ./gradienthealth.github.io
mv /tmp/.git ./gradienthealth.github.io
cd ./gradienthealth.github.io
cp index.html 404.html
git config --global user.name "maya-mohan"
git config --global user.email "[email protected]"
git remote set-url origin https://maya-mohan:${{ secrets.GH_DEPLOY_TOKEN }}@github.com/gradienthealth/gradienthealth.github.io
git add .
git commit -a -m "publishing viewer"
git push -u origin