Skip to content

Commit 2c1e6f2

Browse files
committed
2 parents 63e523f + 69f770a commit 2c1e6f2

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy Jupyter Book to GitHub Pages
33
on:
44
push:
55
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
77

88
jobs:
99
deploy:
@@ -13,35 +13,35 @@ jobs:
1313
id-token: write
1414

1515
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

Comments
 (0)