Skip to content

docs: update some links and language; add LLM family tree because it'… #22

docs: update some links and language; add LLM family tree because it'…

docs: update some links and language; add LLM family tree because it'… #22

Workflow file for this run

name: deploy-book
# Only run this when the master branch changes
on:
push:
branches:
- main
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
deploy-book:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
python -m nltk.downloader vader_lexicon
python -m nltk.downloader punkt
# Build the book
- name: Build the book
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
jupyter-book build .
# Update the dependencies in the book's docker image
- name: update jupyter dependencies with repo2docker
uses: jupyterhub/repo2docker-action@master
with:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
BINDER_CACHE: true
PUBLIC_REGISTRY_CHECK: true
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html