@@ -3,7 +3,7 @@ name: Deploy Jupyter Book to GitHub Pages
3
3
on :
4
4
push :
5
5
branches :
6
- - main # Replace with the branch you use for your source files
6
+ - pages # Replace with the branch you use for your source files
7
7
8
8
jobs :
9
9
deploy :
@@ -13,35 +13,35 @@ jobs:
13
13
id-token : write
14
14
15
15
steps :
16
- # Checkout the repository
17
- - name : Checkout repository
18
- uses : actions/checkout@v3
19
-
20
- # Install dependencies
21
- - name : Set up Python 3.11
22
- uses : actions/setup-python@v4
23
- with :
24
- python-version : 3.11
25
-
26
- - name : Install dependencies
27
- run : |
28
- pip install -r requirements.txt
29
-
30
- # Build the Jupyter Book
31
- - name : Build the Jupyter Book
32
- run : jupyter-book build .
33
-
34
- # Ensure the CNAME file is in the built HTML directory
35
- - name : Add CNAME file
36
- run : echo "briannalaird .com" > _build/html/CNAME
37
-
38
- # Upload the book's HTML as an artifact
39
- - name : Upload artifact
40
- uses : actions/upload-pages-artifact@v2
41
- with :
42
- path : " _build/html"
43
-
44
- # Deploy the book's HTML to GitHub Pages
45
- - name : Deploy to GitHub Pages
46
- id : deployment
47
- uses : actions/deploy-pages@v2
16
+ # Checkout the repository
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v3
19
+
20
+ # Install dependencies
21
+ - name : Set up Python 3.11
22
+ uses : actions/setup-python@v4
23
+ with :
24
+ python-version : 3.11
25
+
26
+ - name : Install dependencies
27
+ run : |
28
+ pip install -r requirements.txt
29
+
30
+ # Build the Jupyter Book
31
+ - name : Build the Jupyter Book
32
+ run : jupyter-book build .
33
+
34
+ # Ensure the CNAME file is in the built HTML directory
35
+ - name : Add CNAME file
36
+ run : echo "cheat-sheets.breezy-codes .com" > _build/html/CNAME
37
+
38
+ # Upload the book's HTML as an artifact (Updated to v3)
39
+ - name : Upload artifact
40
+ uses : actions/upload-pages-artifact@v3
41
+ with :
42
+ path : " _build/html"
43
+
44
+ # Deploy the book's HTML to GitHub Pages (Updated to v4)
45
+ - name : Deploy to GitHub Pages
46
+ id : deployment
47
+ uses : actions/deploy-pages@v4
0 commit comments