Skip to content

docs: add myst.yml, .gitignore, and deploy-docs workflow #1

docs: add myst.yml, .gitignore, and deploy-docs workflow

docs: add myst.yml, .gitignore, and deploy-docs workflow #1

Workflow file for this run

name: Deploy docs to GitHub Pages
on:
push:
branches: [main]
paths:
- docs/**
- .github/workflows/deploy-docs.yml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install mystmd
- run: myst build --html
working-directory: docs
env:
BASE_URL: /qtcloud-write/
- run: cp docs/_build/html/index.html docs/_build/html/404.html
- uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4