Skip to content

Commit

Permalink
test: mkdocs publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Aug 25, 2024
1 parent 4f60378 commit 6e320b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/frag-publish-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Publish

on:
workflow_call:
inputs:
working-directory:
default: "."
description: Where is the `mkdocs.yml` file located?
required: false
type: string

concurrency:
group: docs-deploy
Expand All @@ -27,8 +33,8 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install mkdocs-material
run: pip install mkdocs-material

- name: Build/deploy documentation
run: mkdocs gh-deploy --force
run: |
cd "${{ inputs.working-directory }}"
pip install mkdocs-material
mkdocs gh-deploy --force
6 changes: 6 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
pull_request:

jobs:
frag-publish-mkdocs:
permissions:
contents: write
uses: ./.github/workflows/frag-publish-mkdocs.yml
with:
working-directory: test
frag-qa-mkdocs:
uses: ./.github/workflows/frag-qa-mkdocs.yml
with:
Expand Down

0 comments on commit 6e320b0

Please sign in to comment.