Skip to content

Commit

Permalink
more tests with deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cerkut committed Apr 9, 2024
1 parent 4bb23ae commit 8f79167
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,25 @@ jobs:
- uses: actions/checkout@v3

# Install dependencies
- name: Set up Python 3.11
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: 3.10

- name: Install dependencies
run: |
sudo apt-get update
sudo apt install ffmpeg
pip install -r requirements.txt
# Build the book
- name: Build the book
run: |
jupyter-book build my_book
# Build the book
- name: Build the book
run: |
jupyter-book build . --all
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
path: "_build/html"

# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html

0 comments on commit 8f79167

Please sign in to comment.