Skip to content

Commit

Permalink
Merge pull request #84 from monarch-initiative/fix_75_again
Browse files Browse the repository at this point in the history
More docs workflow fixes
  • Loading branch information
caufieldjh authored Aug 5, 2024
2 parents 8ea3194 + 39df4e8 commit 8582c61
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
# Basic ODK workflow
name: Docs

# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
branches:
- main

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install dependencies
run: "pip install mkdocs-mermaid2-plugin"
run: |
pip install mkdocs
pip install mkdocs-material
pip install mkdocs-mermaid2-plugin
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yaml

run: |
mkdocs gh-deploy --config-file $CONFIG_FILE

0 comments on commit 8582c61

Please sign in to comment.