@@ -13,35 +13,35 @@ jobs:
1313 id-token : write
1414
1515 steps :
16- # Checkout the repository
17- - name : Checkout repository
18- uses : actions/checkout@v4
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
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