Skip to content

Merge pull request #702 from microsoft/dev #309

Merge pull request #702 from microsoft/dev

Merge pull request #702 from microsoft/dev #309

Workflow file for this run

name: Deploy MkDocs site to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install MkDocs and dependencies
run: |
pip install mkdocs-material mkdocs-jupyter
- name: Build MkDocs site
working-directory: docs/workshop
run: |
mkdocs build
touch site/.nojekyll # Disable Jekyll processing
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/workshop/site