File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Build, test
1
+ name : Build, test, publish
2
2
3
3
on : [push,pull_request]
4
4
@@ -287,7 +287,7 @@ jobs:
287
287
python -m pip install itk==5.2rc02
288
288
python -m pip install matplotlib
289
289
python -m pip install itkwidgets
290
-
290
+
291
291
- name : Test notebooks
292
292
uses : treebeardtech/nbmake-action@v0.2.1
293
293
@@ -403,3 +403,24 @@ jobs:
403
403
path : |
404
404
${{ github.workspace }}/ITKExamples-build/ITKExamples-*-html.tar.gz
405
405
${{ github.workspace }}/ITKExamples-build/ITKExamples-*-html.zip
406
+
407
+ - name : Unpack site
408
+ shell : bash
409
+ run : |
410
+ mkdir site
411
+ tar --strip-components=1 -xf ${{ github.workspace }}/ITKExamples-build/ITKExamples-*-html.tar.gz -C site
412
+
413
+ - name : Publish website to Netlify
414
+ uses : nwtgck/actions-netlify@v1.1
415
+ with :
416
+ publish-dir : ' ./site'
417
+ production-branch : master
418
+ github-token : ${{ secrets.GITHUB_TOKEN }}
419
+ deploy-message : ${{ github.event.pull_request.title }})
420
+ enable-pull-request-comment : true
421
+ enable-commit-comment : true
422
+ overwrites-pull-request-comment : true
423
+ env :
424
+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
425
+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
426
+ timeout-minutes : 5
Original file line number Diff line number Diff line change 1
1
ITK Examples
2
2
============
3
3
4
- .. image :: https://github.com/InsightSoftwareConsortium/ITKExamples/workflows/Build,%20test/badge.svg?branch=master
5
- :target: https://github.com/InsightSoftwareConsortium/ITKExamples/actions?query=workflow%3A%22Build%2C+test%22+branch%3Amaster
4
+ .. image :: https://github.com/InsightSoftwareConsortium/ITKExamples/workflows/Build,%20test,%20publish /badge.svg?branch=master
5
+ :target: https://github.com/InsightSoftwareConsortium/ITKExamples/actions?query=workflow%3A%22Build%2C+test%2C+publish% 22+branch%3Amaster
6
6
7
7
.. image :: https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=shield
8
8
:target: https://github.com/InsightSoftwareConsortium/ITKExamples/blob/master/LICENSE
You can’t perform that action at this time.
0 commit comments