feat: DIA-1018: Output streaming #180
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 poetry | |
uses: snok/install-poetry@v1 | |
with: | |
python-version: "3.11" | |
cache: true | |
- name: Install Python dependencies | |
run: | | |
poetry install --sync | |
- name: Build MkDocs site | |
run: | | |
cd docs/ | |
poetry 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 poetry | |
uses: snok/install-poetry@v1 | |
with: | |
python-version: "3.11" | |
cache: true | |
- name: Install Python dependencies | |
run: | | |
poetry install --sync | |
- name: Deploy docs | |
run: | | |
cd docs/ | |
poetry run mkdocs gh-deploy --force |