-
Notifications
You must be signed in to change notification settings - Fork 154
37 lines (35 loc) · 1.21 KB
/
docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy Docs
on:
workflow_dispatch:
inputs:
release_tag:
description: "dstack version"
jobs:
docs-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dstack
run: |
if [ -n "${{ inputs.release_tag }}" ]; then
pip install "dstack==${{ inputs.release_tag }}"
else
pip install -e .
fi
- name: Build
run: |
pip install pillow cairosvg
sudo apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
pip install mkdocs-material "mkdocs-material[imaging]" mkdocs-material-extensions mkdocs-redirects mkdocs-gen-files "mkdocstrings[python]" mkdocs-render-swagger-plugin --upgrade
pip install git+https://${{ secrets.GH_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git
mkdocs build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
repository-name: dstackai/dstackai.github.io
branch: gh-pages
token: ${{ secrets.GH_TOKEN }}
folder: site