File tree 2 files changed +46
-1
lines changed
2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 10
10
build :
11
11
12
12
runs-on : ubuntu-latest
13
-
13
+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
Original file line number Diff line number Diff line change
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name : Jupyter Notebook to HTML
3
+
4
+ on :
5
+ workflow_run :
6
+ workflows : ["Build Docker Image CI"]
7
+ types :
8
+ - completed
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch :
12
+
13
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14
+ permissions :
15
+ contents : read
16
+ pages : write
17
+ id-token : write
18
+
19
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21
+ concurrency :
22
+ group : " pages"
23
+ cancel-in-progress : false
24
+
25
+ jobs :
26
+ # Single deploy job since we're just deploying
27
+ deploy :
28
+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
29
+ environment :
30
+ name : github-pages
31
+ url : ${{ steps.deployment.outputs.page_url }}
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v4
36
+ - name : Setup Pages
37
+ uses : actions/configure-pages@v5
38
+ - name : Upload artifact
39
+ uses : actions/upload-pages-artifact@v3
40
+ with :
41
+ # Upload entire repository
42
+ path : ' ./docs/'
43
+ - name : Deploy to GitHub Pages
44
+ id : deployment
45
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments