Skip to content

Merge pull request #256 from KernelTuner/support_python_312 #217

Merge pull request #256 from KernelTuner/support_python_312

Merge pull request #256 from KernelTuner/support_python_312 #217

Workflow file for this run

name: Build documentation
on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Install dependencies
run: |
sudo apt-get update;
sudo apt-get install pandoc;
pip install -e .
- name: Build
uses: sphinx-notes/pages@v3
with:
python_version: 3.12
requirements_path: doc/requirements.txt
documentation_path: doc/source
publish: false
- name: Commit
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}
destination_dir: ${{ env.RELEASE_VERSION }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages