Skip to content

Commit b34fcdb

Browse files
authored
Merge pull request #348 from InsightSoftwareConsortium/deploy-netlify
BUG: Revert deploy to Netlify
2 parents 3ac107a + 9183236 commit b34fcdb

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

.fleek.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/build-test-publish.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build, test, publish
22

33
on: [push,pull_request]
44

5+
env:
6+
itk-git-tag: "e801e637634d1cdf050b358299fd7b3771418f2e"
7+
58
jobs:
69
build-test-cxx:
710
runs-on: ${{ matrix.os }}
@@ -13,17 +16,14 @@ jobs:
1316
- os: ubuntu-18.04
1417
c-compiler: "gcc"
1518
cxx-compiler: "g++"
16-
itk-git-tag: "a89145bccda6a36f42cfdd45d3a6b27234ff54fe"
1719
cmake-build-type: "MinSizeRel"
1820
- os: windows-2019
1921
c-compiler: "cl.exe"
2022
cxx-compiler: "cl.exe"
21-
itk-git-tag: "a89145bccda6a36f42cfdd45d3a6b27234ff54fe"
2223
cmake-build-type: "Release"
2324
- os: macos-10.15
2425
c-compiler: "clang"
2526
cxx-compiler: "clang++"
26-
itk-git-tag: "a89145bccda6a36f42cfdd45d3a6b27234ff54fe"
2727
cmake-build-type: "MinSizeRel"
2828

2929
steps:
@@ -49,7 +49,7 @@ jobs:
4949
cd ..
5050
git clone https://github.com/InsightSoftwareConsortium/ITK.git
5151
cd ITK
52-
git checkout ${{ matrix.itk-git-tag }}
52+
git checkout ${{ env.itk-git-tag }}
5353
5454
- name: Build ITK
5555
if: matrix.os != 'windows-2019'
@@ -259,7 +259,6 @@ jobs:
259259
- os: ubuntu-18.04
260260
c-compiler: "gcc"
261261
cxx-compiler: "g++"
262-
itk-git-tag: "a89145bccda6a36f42cfdd45d3a6b27234ff54fe"
263262
cmake-build-type: "Release"
264263

265264
steps:
@@ -364,18 +363,22 @@ jobs:
364363
- name: Unpack site
365364
shell: bash
366365
run: |
367-
cp ../../Ex/.fleek.json .
368366
mkdir ${{ github.workspace }}/site
369367
echo "Unpack to ${{ github.workspace }}/site"
370368
tar --strip-components=1 -xf /home/runner/work/bld/ITKEx-build/ITKSphinxExamples-*-html.tar.gz -C ${{ github.workspace }}/site
371369
372-
- name: Deploy website to Fleek
373-
uses: fleekhq/action-deploy@v1
374-
id: deploy
370+
- name: Deploy website to Netlify
371+
uses: nwtgck/actions-netlify@v1.1.13
375372
with:
376-
apiKey: ${{ secrets.FLEEK_API_KEY }}
377-
#workDir: /home/runner/work/Ex
378-
timeout-minutes: 15
379-
380-
- name: Get Fleek output URL
381-
run: echo "Deploy url is ${{ steps.deploy.outputs.deployUrl }}"
373+
publish-dir: '${{ github.workspace }}/site'
374+
production-branch: master
375+
production-deploy: true
376+
github-token: ${{ secrets.GITHUB_TOKEN }}
377+
deploy-message: ${{ github.event.pull_request.title }})
378+
enable-pull-request-comment: true
379+
enable-commit-comment: true
380+
overwrites-pull-request-comment: true
381+
env:
382+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
383+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
384+
timeout-minutes: 5

Superbuild/External-ITK.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Get and build itk
33

44
if(NOT ITK_TAG)
5-
set(ITK_TAG "v5.3rc03")
5+
set(ITK_TAG "e801e637634d1cdf050b358299fd7b3771418f2e")
66
endif()
77

88
set(_vtk_args)

Superbuild/External-Python.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ ExternalProject_Add(ITKPython
1717
DOWNLOAD_COMMAND ""
1818
CONFIGURE_COMMAND ${PYTHON_EXECUTABLE} -m venv "${_itk_venv}"
1919
BUILD_COMMAND ${ITKPYTHON_EXECUTABLE} -m pip install --upgrade pip
20-
INSTALL_COMMAND ${ITKPYTHON_EXECUTABLE} -m pip install --ignore-installed itk>=5.3rc3 sphinx==4.4.0 docutils<0.18 six black nbsphinx ipython sphinx-contributors
20+
INSTALL_COMMAND ${ITKPYTHON_EXECUTABLE} -m pip install --ignore-installed itk>=5.3rc4 sphinx==4.4.0 docutils<0.18 six black nbsphinx ipython sphinx-contributors
2121
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/ITKBlackConfig.cmake
2222
)

src/Registration/Metricsv4/RegisterTwoPointSets/CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ add_test(NAME RegisterTwoPointSetsTest
2525
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RegisterTwoPointSets)
2626

2727
if(ITK_WRAP_PYTHON)
28-
add_test(NAME RegisterTwoPointSetsTest2DPython
29-
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py 2
30-
)
31-
add_test(NAME RegisterTwoPointSetsTest3DPython
32-
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py 3)
28+
# TODO broken in itk v5.3rc03
29+
# repaired after itk v5.3rc04
30+
#add_test(NAME RegisterTwoPointSetsTest2DPython
31+
# COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py 2
32+
# )
33+
#add_test(NAME RegisterTwoPointSetsTest3DPython
34+
# COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py 3)
3335
endif()

0 commit comments

Comments
 (0)