Skip to content

Commit

Permalink
Added viewer deploy workflow to icad gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Adithyan-Dinesh-Trenser committed Apr 5, 2024
1 parent 68c1170 commit b896693
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 1 deletion.
90 changes: 90 additions & 0 deletions .github/workflows/deploy_icad_ghpages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Deploy viewer to icad github pages

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: 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:icad
- name: Checkout gh page
uses: actions/checkout@v3
with:
repository: gradienthealth/icad-gradienthealth
path: ./icad-gradienthealth
token: ${{ secrets.GH_DEPLOY_TOKEN }}

- name: Copy
run: |
mv ./icad-gradienthealth/.git /tmp/
rm -r ./icad-gradienthealth
cp -r ./Viewers/platform/app/dist/ ./icad-gradienthealth
mv /tmp/.git ./icad-gradienthealth
cd ./icad-gradienthealth
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/icad-gradienthealth
git add .
git commit -a -m "publishing viewer"
git push -u origin
2 changes: 1 addition & 1 deletion platform/app/public/config/icad.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ window.config = {
},
oidc: [{
authority: "https://accounts.google.com",
client_id: "112149084621-0693qa0gtck3f9rd08qpbpuafq29r1n5.apps.googleusercontent.com",
client_id: "503845864048-5h2i0kbtrq0sabl0ftq8hedgssgl2n97.apps.googleusercontent.com",
redirect_uri: "/callback",
response_type: "id_token token",
scope: "email profile openid https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/cloud-healthcare",
Expand Down

0 comments on commit b896693

Please sign in to comment.