Skip to content

Commit

Permalink
ci: reflect cookiecutter paths
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Nov 1, 2023
1 parent a212511 commit cc7cffb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,23 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements.txt
# Build the book
- name: Build the book
# Use default CC
- name: Cookiecutter no GHA
run: |
jupyter-book build .
cookiecutter . --no-input include_ci=no
# Install requirements.txt
- name: Install requirements
run: |
pip install -r my_book/requirements.txt
# Build the example book
- name: Build book
run: |
jupyter-book build my_book/my_book/
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "_build/html"

path: "my_book/my_book/_build/html"
# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,24 @@ jobs:
- name: Pytest tests
run: |
pytest
# Build the example book
- name: Build default book
# Use default CC
- name: Cookiecutter no GHA
run: |
cookiecutter . --no-input --overwrite-if-exists include_ci=no
# Install requirements.txt
- name: Install requirements
run: |
cookiecutter . --no-input --overwrite-if-exists
pip install -r my_book/requirements.txt
jupyter-book build .
# Build the example book
- name: Build book
run: |
jupyter-book build my_book/my_book/
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "_build/html"
path: "my_book/my_book/_build/html"
# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit cc7cffb

Please sign in to comment.