mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-16 04:18:35 +00:00
* actions/checkout@v4 * actions/cache@v4 * actions/setup-python@v5 --------- Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com>
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: Deploy MkDocs
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Calculate requirements hash
|
|
id: req-hash
|
|
run: echo "::set-output name=hash::$(sha256sum requirements-doc.txt | awk '{print $1}')"
|
|
|
|
- name: Setup cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
key: mkdocs-material-${{ steps.req-hash.outputs.hash }}
|
|
path: .cache
|
|
restore-keys: |
|
|
mkdocs-material-
|
|
|
|
- name: Install Requirements
|
|
run: |
|
|
sudo apt-get update &&
|
|
sudo apt-get install pngquant &&
|
|
pip install mkdocs-material mkdocs-material-extensions pillow cairosvg
|
|
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
- name: Build and deploy MkDocs
|
|
run: mkdocs gh-deploy --force
|