@@ -2,6 +2,9 @@ name: Build, test, publish
22
33on : [push,pull_request]
44
5+ env :
6+ itk-git-tag : " e801e637634d1cdf050b358299fd7b3771418f2e"
7+
58jobs :
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 :
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
0 commit comments