Spiegel von
https://github.com/asavinov/intelligent-trading-bot.git
synchronisiert 2026-11-21 16:19:43 +00:00
name: Deploy Docs
| |
| |
on:
| |
push:
| |
branches: [master]
| |
#tags: ['v*'] # only on version tags
| |
#tags: ['v0.8*'] # only v0.8.x
| |
workflow_dispatch: # allows manual runs
| |
| |
permissions:
| |
contents: read
| |
pages: write
| |
id-token: write
| |
| |
concurrency:
| |
group: "pages"
| |
cancel-in-progress: false
| |
| |
jobs:
| |
build:
| |
runs-on: ubuntu-latest
| |
steps:
| |
- name: Checkout
| |
uses: actions/checkout@v4
| |
with:
| |
fetch-depth: 0 # useful if you use git-revision plugins
| |
| |
- name: Setup Python
| |
uses: actions/setup-python@v5
| |
with:
| |
python-version: "3.12"
| |
| |
- name: Install dependencies
| |
run: |
| |
python -m pip install --upgrade pip
| |
pip install -e ".[docs]"
| |
| |
- name: Build documentation
| |
run: mkdocs build --strict
| |
| |
- name: Upload artifact
| |
uses: actions/upload-pages-artifact@v3
| |
with:
| |
path: site
| |
| |
deploy:
| |
environment:
| |
name: github-pages
| |
url: ${{ steps.deployment.outputs.page_url }}
| |
runs-on: ubuntu-latest
| |
needs: build
| |
steps:
| |
- name: Deploy to GitHub Pages
| |
id: deployment
| |
uses: actions/deploy-pages@v4
|