Skip to content

Merge pull request #45 from Agony5757/codex/exact-shanten-and-repo-hy… #12

Merge pull request #45 from Agony5757/codex/exact-shanten-and-repo-hy…

Merge pull request #45 from Agony5757/codex/exact-shanten-and-repo-hy… #12

Workflow file for this run

name: Documentation
on:
push:
branches:
- master
paths:
- 'docs/**'
- 'pymahjong/**'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install documentation dependencies
run: pip install sphinx furo sphinx-autodoc-typehints myst-parser sphinx-copybutton
- name: Build documentation
run: |
cd docs
make html
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/_build/html/
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4