Skip to content

Commit

Permalink
add monodocs build to ci
Browse files Browse the repository at this point in the history
Signed-off-by: Niels Bantilan <[email protected]>
  • Loading branch information
cosmicBboy committed Dec 8, 2023
1 parent 46d059a commit a49b750
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/monodocs_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Docs Build

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
branches:
- monodocs-ci
pull_request:
branches:
- master
jobs:
docs:
name: Docs Build
runs-on: ubuntu-latest
steps:
- name: Fetch flytesnacks code
uses: actions/checkout@v4
with:
path: "${{ github.workspace }}/flytesnacks"
- name: Fetch flyte code
uses: actions/checkout@v4
with:
path: "${{ github.workspace }}/flyte"
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.9
- shell: bash -el {0}
run: |
cd ${{ github.workspace }}/flyte
conda install -c conda-forge conda-lock
conda-lock install -n monodocs-env monodocs-environment.lock.yaml
- shell: bash -el {0}
run: |
conda activate monodocs-env
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Build the documentation
shell: bash -el {0}
env:
FLYTESNACKS_LOCAL_PATH: ${{ github.workspace }}/flytesnacks
run: |
conda activate monodocs-env
make docs

0 comments on commit a49b750

Please sign in to comment.