Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
c70a9af
Create sample.yml
maya-trenser Sep 25, 2023
043ba9b
Update sample.yml
maya-trenser Sep 25, 2023
a3cf8b9
Update sample.yml
maya-trenser Sep 25, 2023
746038a
Update sample.yml
maya-trenser Sep 25, 2023
cbe8083
Update sample.yml
maya-trenser Sep 25, 2023
d26047b
Update sample.yml
maya-trenser Sep 25, 2023
4db48f3
Update sample.yml
maya-trenser Sep 25, 2023
c38a9f4
Update sample.yml
maya-trenser Sep 25, 2023
8b95a3b
Update sample.yml
maya-trenser Sep 25, 2023
f8be3df
Update sample.yml
maya-trenser Sep 25, 2023
e007460
Create test.yml
maya-trenser Sep 25, 2023
013ae84
Update test.yml
maya-trenser Sep 25, 2023
7f2f1ca
Update test.yml
maya-trenser Sep 25, 2023
02ed61b
Update test.yml
maya-trenser Sep 25, 2023
2cd1ac4
Update test.yml
maya-trenser Sep 25, 2023
541e8ec
Update test.yml
maya-trenser Sep 25, 2023
d524dbd
Update test.yml
maya-trenser Sep 25, 2023
ce7b1bb
Update test.yml
maya-trenser Sep 25, 2023
77e1423
Update test.yml
maya-trenser Sep 25, 2023
9f09131
Update test.yml
maya-trenser Sep 25, 2023
ffbeecf
Update test.yml
maya-trenser Sep 25, 2023
cc4c613
Update test.yml
maya-trenser Sep 25, 2023
d99e1d6
Update test.yml
maya-trenser Sep 25, 2023
c7803d7
Update test.yml
maya-trenser Sep 25, 2023
83372a7
Update test.yml
maya-trenser Sep 25, 2023
21f3d73
Update test.yml
maya-trenser Sep 25, 2023
6d1d428
Update test.yml
maya-trenser Sep 25, 2023
9fc7e77
Update test.yml
maya-trenser Sep 25, 2023
94a4767
Update test.yml
maya-trenser Sep 25, 2023
461e1d7
Update test.yml
maya-trenser Sep 26, 2023
f53428b
Update test.yml
maya-trenser Sep 26, 2023
e1bd98a
Update test.yml
maya-trenser Sep 26, 2023
5635421
Update test.yml
maya-trenser Sep 26, 2023
0f06e41
Update test.yml
maya-trenser Sep 26, 2023
c438a03
Update test.yml
maya-trenser Sep 26, 2023
480bcf1
Update test.yml
maya-trenser Sep 26, 2023
09159e9
Update test.yml
maya-trenser Sep 26, 2023
dbc5706
Update test.yml
maya-trenser Sep 26, 2023
e4d6752
Update sample.yml
maya-trenser Sep 26, 2023
83d7222
Create commit.yml
maya-trenser Sep 26, 2023
3230096
Update commit.yml
maya-trenser Sep 26, 2023
a8b8c78
Update commit.yml
maya-trenser Sep 26, 2023
39b27fb
Update commit.yml
maya-trenser Sep 26, 2023
741a616
Update commit.yml
maya-trenser Sep 26, 2023
ab6eec0
Update commit.yml
maya-trenser Sep 26, 2023
5059dd9
Update commit.yml
maya-trenser Sep 26, 2023
bf749ad
Update commit.yml
maya-trenser Sep 26, 2023
f9bc981
Update commit.yml
maya-trenser Sep 26, 2023
7912b7e
Update commit.yml
maya-trenser Sep 26, 2023
50b6c05
Update commit.yml
maya-trenser Sep 26, 2023
bbf9111
Update commit.yml
maya-trenser Sep 26, 2023
477d6fb
Update commit.yml
maya-trenser Sep 26, 2023
bd4e40c
Update commit.yml
maya-trenser Sep 26, 2023
b45312c
Update commit.yml
maya-trenser Sep 26, 2023
0acfa0b
Update commit.yml
maya-trenser Sep 26, 2023
3e6a4de
Update commit.yml
maya-trenser Sep 26, 2023
c966ae2
Update commit.yml
maya-trenser Sep 26, 2023
7b0056f
Update commit.yml
maya-trenser Sep 26, 2023
a61485b
Update commit.yml
maya-trenser Sep 26, 2023
0bb65b4
Update commit.yml
maya-trenser Sep 26, 2023
2cbb9f1
Update commit.yml
maya-trenser Sep 26, 2023
522e8c8
Update commit.yml
maya-trenser Sep 26, 2023
0b99e0e
Create push.yml
maya-trenser Sep 26, 2023
d9a8064
Update commit.yml
maya-trenser Sep 26, 2023
8912a84
Update push.yml
maya-trenser Sep 26, 2023
8af708b
Update push.yml
maya-trenser Sep 26, 2023
0d88608
Update push.yml
maya-trenser Sep 26, 2023
c94257e
Update push.yml
maya-trenser Sep 26, 2023
b077ee4
Update push.yml
maya-trenser Sep 26, 2023
a5a8b19
Update push.yml
maya-trenser Sep 26, 2023
2903c32
Update push.yml
maya-trenser Sep 26, 2023
e420f6d
Update push.yml
maya-trenser Sep 26, 2023
4f84f28
Update push.yml
maya-trenser Sep 26, 2023
66fcb7c
Update push.yml
maya-trenser Sep 26, 2023
3032639
Update push.yml
maya-trenser Sep 26, 2023
9b02394
Update push.yml
maya-trenser Sep 26, 2023
503c939
Update push.yml
maya-trenser Sep 26, 2023
2b6760a
Update push.yml
maya-trenser Sep 26, 2023
e812158
Update push.yml
maya-trenser Sep 26, 2023
c9e9674
Update commit.yml
maya-trenser Sep 26, 2023
40f2ac0
Update commit.yml
maya-trenser Sep 26, 2023
fde9621
Update commit.yml
maya-trenser Sep 26, 2023
1dca799
Update commit.yml
maya-trenser Sep 26, 2023
7941ca3
Update commit.yml
maya-trenser Sep 26, 2023
33bb7c5
Update commit.yml
maya-trenser Sep 26, 2023
3e2219e
Update commit.yml
maya-trenser Sep 26, 2023
95064ac
Update commit.yml
maya-trenser Sep 26, 2023
856ce43
Update commit.yml
maya-trenser Sep 26, 2023
3e610a9
Update commit.yml
maya-trenser Sep 26, 2023
d966508
Update commit.yml
maya-trenser Sep 26, 2023
095f16a
Update commit.yml
maya-trenser Sep 26, 2023
eea8193
Update commit.yml
maya-trenser Sep 26, 2023
29c1402
Update commit.yml
maya-trenser Sep 26, 2023
8660d83
Update commit.yml
maya-trenser Sep 26, 2023
d0dd5c3
Update commit.yml
maya-trenser Sep 27, 2023
9f7e5c1
Update test.yml
maya-trenser Sep 27, 2023
a3cd9e9
Update test.yml
maya-trenser Sep 27, 2023
9616fff
Update test.yml
maya-trenser Sep 27, 2023
097af5a
Update test.yml
maya-trenser Sep 27, 2023
c6b3634
Update test.yml
maya-trenser Sep 27, 2023
56a3cc7
Update test.yml
maya-trenser Sep 27, 2023
eb2b07b
Update test.yml
maya-trenser Sep 27, 2023
8a59aad
Update test.yml
maya-trenser Sep 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#To test commit
name: NodeJS with Webpack

on:
#push:
#branches: [ "maya-trenser-action-1" ]
#pull_request:
#branches: [ "master" ]

permissions:
contents: write

jobs:
buildCornerstone3D:
runs-on: ubuntu-latest

steps:
- name: Checkout gh page
uses: actions/checkout@v3
with:
#github-server-url: https://maya-trenser:${{ secrets.MY_TOKEN }}@github.com
repository: maya-trenser/maya-trenser.github.io
path: ./maya-trenser.github.io
token: ${{ secrets.MY_TOKEN }}

- name: Copy
run: |
#echo ${{ secrets.MY_TOKEN }}
pwd
ls -a ./maya-trenser.github.io
mv ./maya-trenser.github.io/.git /tmp/
rm -r ./maya-trenser.github.io/*
mv /tmp/.git ./maya-trenser.github.io
ls -a ./maya-trenser.github.io
cd ./maya-trenser.github.io
git config --global user.name "maya-trenser"
git config --global user.email "maya.mohan@trenser.com"
git config --list
#git remote set-url origin https://maya-trenser:${{ secrets.GITHUB_TOKEN }}@github.com/maya-trenser.github.io
#git config --list
git remote set-url origin https://maya-trenser:${{ secrets.MY_TOKEN }}@github.com/maya-trenser/maya-trenser.github.io
git config --list
#git checkout "${GITHUB_REF:11}"
git commit -a -m "publishing viewer"
git push -u origin

test:
runs-on: ubuntu-latest
needs:
buildCornerstone3D
steps:
- name: echooo
run: |
echo "If you can read this, succeeded"
82 changes: 82 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#To test commit
name: NodeJS with Webpack

on:
#push:
#branches: [ "maya-trenser-action-1" ]
#pull_request:
#branches: [ "master" ]

permissions:
contents: write

jobs:
buildCornerstone3D:
runs-on: ubuntu-latest

steps:
- name: Checkout gh page
uses: actions/checkout@v3
with:
github-server-url: https://maya-trenser:${{ Secrets.MY_TOKEN }}@github.com
repository: maya-trenser/maya-trenser.github.io
path: ./maya-trenser.github.io

- name: Copy
run: |
echo ${{ Secrets.MY_TOKEN }}
pwd
ls -a ./maya-trenser.github.io
mv ./maya-trenser.github.io/.git /tmp/
rm -r ./maya-trenser.github.io/*
mv /tmp/.git ./maya-trenser.github.io
ls -a ./maya-trenser.github.io
#cd ./maya-trenser.github.io
#git config --global user.name "maya-trenser"
#git config --global user.email "maya.mohan@trenser.com"
#git commit -a -m "publishing viewer"
#git config --list
#git remote set-url origin https://maya-trenser:${{ Secrets.MY_TOKEN }}@github.com/maya-trenser.github.io
#git config --list
#git push origin

- name: Checkout viewer
uses: actions/checkout@v3
with:
repository: maya-trenser/Viewers
path: ./Viewers

- name: sample
run: pwd

- name: Pushes test file
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.MY_TOKEN }}
with:
source_file: Viewers/platform/app
destination_repo: 'maya-trenser/maya-trenser.github.io'
#destination_folder: 'test-dir'
user_email: 'maya.mohan@trenser.com'
user_name: 'maya-trenser'
commit_message: 'A custom message for the commit'

#- name: Deploy to external repository
# uses: cpina/github-action-push-to-another-repository@main
# env:
# API_TOKEN_GITHUB: ${{ GITHUB_TOKEN }}
#
# with:
# source-directory: Viewers/platform/app
# destination-github-username: maya-trenser
# destination-repository-name: maya-trenser.github.io
# user-email: maya.mohan@trenser.com

test:
runs-on: ubuntu-latest
needs:
buildCornerstone3D
steps:
- name: echooo
run: |
echo "If you can read this, succeeded"
47 changes: 47 additions & 0 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: NodeJS with Webpack

on:
#push:
#branches: [ "maya-trenser-action-1" ]
#pull_request:
#branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
yarn install
npm run build
- name: Upload
uses: actions/upload-artifact@v3
with:
name: my-artifact
path: platform/app/dist

deploy:
environment:
name: development
url: https://github.com/${{ github.repository }}/releases/tag/1
runs-on: ubuntu-latest
needs:
build
steps:
- name: Download
uses: actions/download-artifact@v3
with:
name: my-artifact
path: platform/app
101 changes: 101 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: NodeJS with Webpack

on:
push:
branches: [ "maya-trenser-action-1" ]
#pull_request:
#branches: [ "master" ]

jobs:
buildCornerstone3D:
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
uses: actions/checkout@v3
with:
repository: maya-trenser/cornerstone3D
ref: maya-trenser-patch-1
path: ./cornerstone3D

- name: Build
run: |
cd ./cornerstone3D
pwd
yarn install
yarn build:all
- uses: actions/checkout@v3
with:
repository: maya-trenser/Viewers
path: ./Viewers

- name: Link
run: |
#cd ./cornerstone3D/packages/dicomImageLoader/dist
#pwd
#yarn link
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 build

- name: Checkout gh page
uses: actions/checkout@v3
with:
repository: maya-trenser/maya-trenser.github.io
path: ./maya-trenser.github.io
token: ${{ secrets.MY_TOKEN }}

- name: Copy
run: |
pwd
ls -a ./maya-trenser.github.io
mv ./maya-trenser.github.io/.git /tmp/
rm -r ./maya-trenser.github.io
#ls -a ./maya-trenser.github.io
#ls -a ./Viewers/platform/app/dist/
cp -r ./Viewers/platform/app/dist/ ./maya-trenser.github.io
mv /tmp/.git ./maya-trenser.github.io
ls -a ./maya-trenser.github.io
cd ./maya-trenser.github.io
git config --global user.name "maya-trenser"
git config --global user.email "maya.mohan@trenser.com"
git remote set-url origin https://maya-trenser:${{ secrets.MY_TOKEN }}@github.com/maya-trenser/maya-trenser.github.io
git add .
git commit -a -m "publishing viewer"
git push -u origin

test:
runs-on: ubuntu-latest
needs:
buildCornerstone3D
steps:
- name: echooo
run: |
echo "If you can read this, succeeded"