Skip to content

Update dotnet-tests.yml #73

Update dotnet-tests.yml

Update dotnet-tests.yml #73

name: Build MKDocs Site

Check failure on line 1 in .github/workflows/ghpages-mkdocs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ghpages-mkdocs.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
pull_request:
branches:
- main
- dev
paths:
- .github/workflows/ghpages-mkdocs.yml
- docs/**
- mkdocs.yml
paths-ignore:
- .github/**
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all branches and tags, not just the default branch.
# This is needed to ensure that the commit SHA is available for the deployment.
# See
sparse-checkout: |
docs
mkdocs.yml
.github/workflows/ghpages-mkdocs.yml
- name: Setup pages
id: pages
uses: actions/configure-pages@v5
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Use the latest version of Python 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./docs/requirements.txt
- name: Build documentation
# Outputs to the './_site' directory by default
run: |
mkdocs build --site-dir ./_site --config-file ./docs/mkdocs.yml
- name: Upload artifact
# Automatically upload an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/_site