Add draft architechture for async streaming environment #127
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Docs" | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'docs/**' | |
- 'adala/**' | |
- '.github/workflows/docs.yml' | |
pull_request: | |
paths: | |
- 'docs/**' | |
- 'adala/**' | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' # Run this job for pull requests only | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: "3.11" | |
cache: true | |
- name: Install Python dependencies | |
run: | | |
pdm sync -G doc | |
- name: Build MkDocs site | |
run: | | |
cd docs/ | |
pdm run mkdocs build | |
upload: | |
name: "Upload" | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' # Run this job for pushes to the master branch only | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: "3.11" | |
cache: true | |
- name: Install Python dependencies | |
run: | | |
pdm sync -G doc | |
- name: Deploy docs | |
run: | | |
cd docs/ | |
pdm run mkdocs gh-deploy --force |