Skip to content

fix(hub): correct the book URL (Amazon shortlink) #2

fix(hub): correct the book URL (Amazon shortlink)

fix(hub): correct the book URL (Amazon shortlink) #2

Workflow file for this run

name: docs
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: docs-pages
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.11
- name: Install docs deps
run: uv sync --group docs
- name: Build site
run: uv run mkdocs build --strict
- name: Upload built site
uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
needs: build
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4