Skip to content

Commit 934b974

Browse files
feat: update workflows
1 parent 4aea0cf commit 934b974

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/docker-image.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13-
13+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1414
steps:
1515
- uses: actions/checkout@v2
1616

.github/workflows/pages_deploy.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)