Skip to content

ci: update GitHub Actions and add Dependabot (#19) #8

ci: update GitHub Actions and add Dependabot (#19)

ci: update GitHub Actions and add Dependabot (#19) #8

Workflow file for this run

name: Docs
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: "docs"
cancel-in-progress: true
jobs:
build:
name: Build & Deploy Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
version: "latest"
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --dev --extra docs
- name: Build docs
# The docs tree includes archived/reference pages and legacy relative
# links that are useful to keep but currently emit MkDocs warnings.
# Build failures should still stop deployment; warning cleanup can be
# handled separately without blocking docs publication.
run: uv run mkdocs build
- name: Deploy to website repo
uses: cpina/github-action-push-to-another-repository@v1.7.3
env:
SSH_DEPLOY_KEY: ${{ secrets.DOCS_DEPLOY_KEY }}
with:
source-directory: site/
destination-github-username: ml4t
destination-repository-name: website
target-directory: static/docs/data/
target-branch: main
commit-message: "docs(data): update from ml4t/data@${{ github.sha }}"
user-name: ml4t-bot
user-email: bot@ml4trading.io